| Algorithm 1 Meta-Verification Consensus | |
| 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: |
Input: entry → new block to write network → current state of network Output: mempool → updated list of pending transactions Procedure mempool ← network.getMempool() tx ← NewTransaction(entry) tx.status ← 0xFFFF… tx.expire ← CURRENT_TIMESTAMP + entry.lifetime Broadcast(network.getAllNodes(), tx) confirmed ← new List confirmations ← 0 while confirmations <= THRESHOLD do if callback then confirmed.add(callback.ID) confirmations ← confirmations + 1 CS ← Hash(tx.hash + confirmed) tx.sign(CS) Broadcast(network.getFullNodes(), entry) mempool.add(tx) return mempool |