From e747ed989ebb7b9650ba1478d583f7f507e1083f Mon Sep 17 00:00:00 2001 From: rkrux Date: Fri, 21 Feb 2025 16:45:40 +0530 Subject: [PATCH] contrib: fix read metadata related comment The utxo snapshot metadata doesn't seem to contain any block height as per the CPP code and no such value is read few lines down by the tool code as well. Related CPP code: bitcoin/bitcoin/blob/28.x/src/node/utxo_snapshot.h#L60-L66 --- contrib/utxo-tools/utxo_to_sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/utxo-tools/utxo_to_sqlite.py b/contrib/utxo-tools/utxo_to_sqlite.py index 20d834095cd..4758fe39aaa 100755 --- a/contrib/utxo-tools/utxo_to_sqlite.py +++ b/contrib/utxo-tools/utxo_to_sqlite.py @@ -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')