I'm guessing the error is in sigdump.rs:
let cb = SigDump {
dump_folder: PathBuf::from(dump_folder),
sig_writer: SigDump::create_writer(cap, dump_folder.join("signatures.csv.tmp"))?,
start_height: 0,
end_height: 0,
tx_count: 0,
in_count: 0,
out_count: 0,
blocks_count: 0,
db,
};
Has anyone else encountered this error?
One possible solution is to set 'start_height' to value greater than zero, such as current block height or a recent blockheight. You can find block height by running the 'bitcoin-cli getblockcount' command in your bitcoin node.
Or, you can modify the code automatically determine the 'start_height' based on the existing data in the dump folder. For example, you an check if the 'signatures.csv.tmp' file exists in the dump folder and if so, read the last line to determine the block height from which the script should start analyzing the blockchain data.