Figure 12. User interface of experiment progress
By implementing multi-thread program architecture, P-PoW algorithm runs in a individual thread, and the consensus algorithm of Thread 3 is independent of blockchain data filling process which is implanted in Thread 2. Therefore, the simulation program runs in exactly the same manner as P-PoW algorithm should practically do. Furthermore, through the communication interaction between Thread 4 and Thread 2, users can choose Thread 2 to generate new blocks periodically and display related information on UI interface, or to trigger an interruption event to achieve real-time data summoning.
Figure 12 shows the user interface of the experimental program, where the display area is mainly divided into two regions: ① block header information display region② block data information display region. It also allows for the adjustment of new block generation speed, searching block information by index, real-time data summon, and other functions. The fields in the block header and block data regions are explained in Table 1.
Tab.1 Names and explanations of experiment program fields