diff --git a/contrib/utxo-tools/utxo_to_sqlite.py b/contrib/utxo-tools/utxo_to_sqlite.py index d53adadede8..4758fe39aaa 100755 --- a/contrib/utxo-tools/utxo_to_sqlite.py +++ b/contrib/utxo-tools/utxo_to_sqlite.py @@ -5,7 +5,7 @@ """Tool to convert a compact-serialized UTXO set to a SQLite3 database. The input UTXO set can be generated by Bitcoin Core with the `dumptxoutset` RPC: -$ bitcoin-cli dumptxoutset ~/utxos.dat +$ bitcoin-cli dumptxoutset ~/utxos.dat latest The created database contains a table `utxos` with the following schema: (txid TEXT, vout INT, value INT, coinbase INT, height INT, scriptpubkey TEXT) @@ -126,7 +126,7 @@ def main(): con = sqlite3.connect(args.outfile) con.execute("CREATE TABLE utxos(txid TEXT, vout INT, value INT, coinbase INT, height INT, scriptpubkey TEXT)") - # read metadata (magic bytes, version, network magic, block height, block hash, UTXO count) + # read metadata (magic bytes, version, network magic, block hash, UTXO count) f = open(args.infile, 'rb') magic_bytes = f.read(5) version = int.from_bytes(f.read(2), 'little')