Closed RCasatta closed 1 year ago
After https://github.com/RCasatta/blocks_iterator/commit/86da242ba8ac34c079e6002ae6ad6f59b70b9012 the database contains data to compute the UTXO set at the height of the last run.
Create a binary bin/utxo_set.rs dumping the utxo set in a format like
bin/utxo_set.rs
Vec<(OutPoint, TxOut)>
plus height and a hash matching the one returned from bitcoin-cli gettxoutsetinfo
bitcoin-cli gettxoutsetinfo
utxo set consensus encoding should be in a separate crate so that libraries could use only that (also BlockExtra should probably be there)
muhash https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2017-May/014337.html
python impl https://github.com/fjahr/bitcoin/blob/36ec9801a4edb9663ef9ce9ad298233766b903e8/test/functional/test_framework/muhash.py
https://github.com/bitcoin/bitcoin/pull/18000
bitcoin-cli dumptxoutset already does this, won't implement
bitcoin-cli dumptxoutset
After https://github.com/RCasatta/blocks_iterator/commit/86da242ba8ac34c079e6002ae6ad6f59b70b9012 the database contains data to compute the UTXO set at the height of the last run.
Create a binary
bin/utxo_set.rs
dumping the utxo set in a format likeVec<(OutPoint, TxOut)>
plus height and a hash matching the one returned from
bitcoin-cli gettxoutsetinfo