Title: rusty-blockparser Post by: beeteeceeteeach on April 30, 2023, 02:10:07 AM When running the fork ecdsa-dump-bitcoin, I receive an error: block height is zero, followed by an overflow error, and then it exits.
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? Title: Re: rusty-blockparser Post by: whanau on April 30, 2023, 02:22:21 AM yes but no idea what it is ???
Title: Re: rusty-blockparser Post by: zanezane on April 30, 2023, 03:37:34 PM When running the fork ecdsa-dump-bitcoin, I receive an error: block height is zero, followed by an overflow error, and then it exits. Based on your error message you provide, it seems that 'start_height' variable in 'SigDump' is set to zero, which might be causing the overflow error. The 'start_height' variable is used to specify the block height from which the script will start analyzing the blockchain data.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. yes but no idea what it is ??? Maybe my information could help you as well. ;) |