Bitcoin Stack Trade is a query and reply website for Bitcoin crypto-currency lovers. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
The most effective solutions are voted up and rise to the highest
Requested
Considered
46 occasions
Within the context of the Drivechain proposal, for UTXOs in miner-controlled escrows to be spent, they should be voted on by every block over a lot of blocks, proper?
Now, how are these votes made and the place are they computed? I believe the votes are someway written within the block coinbase, however how precisely? It is not like there’s a lot area there. After which every full node has to maintain a desk of what transaction has what number of votes and confirm towards that at any time when a transaction is included within the block?
The votes are revealed on the block coinbase. This may be performed in a number of methods, some extra environment friendly than others. The BIP-300 specification proposes a manner that’s considerably complicated however tries to be environment friendly.
The precise present depend at any level — i.e. the sum of all upvotes and downvotes — is computed from these coinbase votes and stored by all nodes as part of the chainstate. Once more, the precise bodily place of the place these items are stored is an implementation element (they might be both stored in a separate desk or someplace related to the UTXO that’s holding the Drivechain funds).