Comment
Author: Admin | 2025-04-28
End ifend procedureThe processing phases, i.e., the mining from creation a block to be mined to creation a block for inclusion into the blockchain is specified by the following Algorithms A4–A7. Algorithm A4 provides generation of a block by Pool Manager that is to be used for the mining. Algorithm A5 provides mining procedure of a pool member. Algorithm A6 yields Pool Manager searches a table for the solution of the puzzle. Algorithm A7 shows how the Pool Manager receives the nonce value from the miner who found the solution candidate and generates a block for inclusion into the blockchain. Algorithm A4 Generation of a block by Pool Manager.Input c h a i n , transaction pool t p and g a s L i m i t Output b l o c k that will be minedprocedurecreateBlockForMining( c h a i n , t p , g a s L i m i t ) b l o c k ← i n i t B l o c k ( ) b l o c k . t i m e s t a m p ← t i m e ( ) b l o c k . n u m b e r ← l e n ( c h a i n ) b l o c k . p a r e n t H a s h ← h a s h ( last block in c h a i n ) ) b l o c k . u n c l e s H a s h ← s e t U n c l e s H a s h ( ) b l o c k . g a s L i m i t ← g a s L i m i t b l o c k . t r a n s a c t i o n s ← s e l e c t T r a n s a c t i o n s ( t p , g a s L i m i t ) b l o c k . t r a n s a c t i o n s R o o t ← h a s h ( r o o t ( b l o c k . t r a n s a c t i o n s ) ) b l o c k . s t a t e ← e x e c u t e ( b l o c k . t r a n s a c t i o n s ) b l o c k . s t a t e R o o t ← h a s h ( r o o t ( b l o c k . s t a t e ) ) end procedureAlgorithm A5 Mining procedure of a pool member.Input block b, obtained from the
Add Comment