Comment
Author: Admin | 2025-04-28
Solution for CO problem instance i, and the miner can announce it and publish block B.FAILED: This stands for the case when a solution method reaches the stopping criterion without providing a valid solution for instance i. In that case, the CO problem instance is returned to the instance pool for another attempt related to some future block.Once the selected instance is solved, the miner is ready to announce a new block. To establish the correspondence between the composed block and the solved CO problem instance, the miner stores a pointer to the transaction, introducing the CO problem instance or smart contract that corresponds to the submitted instance in field1. This information enables all participants to access the data related to the solved instance. Algorithm 2 Procedure for block miningprocedureMining( )B ← InitBlock()repeatt ← SelectTransaction() ▹ Adding transactions to compose block Bif IsValid(t) thenAddTransaction(B,t)end ifuntil IsCompleted(B)hB ← Hashnn(B) ▹ Calculating the block hash value i ← hB (mod | P | ) ▹ Selecting CO problem instance i n d , s o l i , o b j i ← Solve(i) ▹ Invoking solution method case I N T E R R U P T : ▹ Another miner already announced a block if | o b j i − t h r e s h o l d | ε then ▹ If close to getting valid solution i n d , s o l i , o b j i ← S o l v e C ( i ) ▹ Continue mining if i n d = F A I L E D thenbreakend ifelsebreakend if case S O L V E D : ▹ Valid solution is obtained field 1 ← d a t a A d d r e s s field 2 ← XOR(hi, h s o l i ) WriteSolution ( m i n e r I D , field 1 , h i , o b j i , h s o l i ) ▹ Announce solution PublisherBlock ( B ) ▹ Publish block Bbreak case F A I L
Add Comment