utxo-workshop icon indicating copy to clipboard operation
utxo-workshop copied to clipboard

Update Genesis Config to build utxos using hash (transaction, index) to avoid collisions

Open soulofamachine opened this issue 5 years ago • 1 comments

This is just an observation, not a problem. The genesis UTXOs are stored at keys created by simply hashing the UTXO itself. This is different from how all future UTXOs will be stored (by hashing a (tx, index) tuple).

Originally posted by @JoshOrndorff in https://github.com/substrate-developer-hub/utxo-workshop/pull/45

soulofamachine avatar Apr 09 '20 03:04 soulofamachine

disperse_reward may also need to be updated, right now, its stored at the hash of (transaction_output, block_number), which is guaranteed unique but not super elegant.

soulofamachine avatar Apr 09 '20 03:04 soulofamachine