utxo-workshop
utxo-workshop copied to clipboard
Update Genesis Config to build utxos using hash (transaction, index) to avoid collisions
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
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.