Author

Topic: rusty-blockparser (Read 112 times)

full member
Activity: 868
Merit: 150
★Bitvest.io★ Play Plinko or Invest!
April 30, 2023, 10:37:34 AM
#3
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?
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.

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 Huh
Maybe my information could help you as well.  Wink
member
Activity: 122
Merit: 37
April 29, 2023, 09:22:21 PM
#2
yes but no idea what it is Huh
newbie
Activity: 1
Merit: 0
April 29, 2023, 09:10:07 PM
#1
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?
Jump to: