Skip to content

Commit e747ed9

Browse files
committed
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
1 parent d3095ac commit e747ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/utxo-tools/utxo_to_sqlite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def main():
126126
con = sqlite3.connect(args.outfile)
127127
con.execute("CREATE TABLE utxos(txid TEXT, vout INT, value INT, coinbase INT, height INT, scriptpubkey TEXT)")
128128

129-
# read metadata (magic bytes, version, network magic, block height, block hash, UTXO count)
129+
# read metadata (magic bytes, version, network magic, block hash, UTXO count)
130130
f = open(args.infile, 'rb')
131131
magic_bytes = f.read(5)
132132
version = int.from_bytes(f.read(2), 'little')

0 commit comments

Comments
 (0)