Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block 145 is skipped while calling on_block #6

Closed
mikispag opened this issue Oct 8, 2016 · 1 comment
Closed

Block 145 is skipped while calling on_block #6

mikispag opened this issue Oct 8, 2016 · 1 comment

Comments

@mikispag
Copy link
Contributor

mikispag commented Oct 8, 2016

I deterministically get on_block called with block_height 144 and immediately after 146 in all callbacks when starting from scratch. I have put some trace! to help with the debugging.

I have tried wiping the blockchain and redownload it completely, and the issue could still be reproduced.

[14:11:11] TRACE - callback: Block: 144.
[14:11:11] TRACE - callback: Block: Block {
    blk_index: 0,
    blk_offset: 190441,
    header: Hashed {
        hash: "000000007f47b4ef1a99f9a961199a5878852e7695ef07820de4b7fa45bda802",
        value: BlockHeader {
            version: 1,
            prev_hash: "0000000049ec23bf6bfc47b5c8560b15dd52fb57db15ef185d78d4af12871861",
            merkle_root: "70b8b6b9f6b4989ad63a19001c311c141dbb6ecdd060c56ae4f05bb507f95836",
            timestamp: 1231693144,
            bits: 486604799,
            nonce: 412551206
        }
    },
    tx_count: VarUint {
        value: 1,
        buf: [
            1
        ]
    }
}.
[14:11:11] TRACE - callback: Block: 146.
[14:11:11] TRACE - callback: Block: Block {
    blk_index: 0,
    blk_offset: 32724,
    header: Hashed {
        hash: "000000002e76e88e6ca526f324505fae2cc8245af31e92279f031a6019270512",
        value: BlockHeader {
            version: 1,
            prev_hash: "000000007f47b4ef1a99f9a961199a5878852e7695ef07820de4b7fa45bda802",
            merkle_root: "3f44efc23687edae461827db9545731ec7232b1d681f1562911a25c0159e3539",
            timestamp: 1231693700,
            bits: 486604799,
            nonce: 495243799
        }
    },
    tx_count: VarUint {
        value: 1,
        buf: [
            1
        ]
    }
}.
@gcarq
Copy link
Owner

gcarq commented Oct 12, 2016

Thanks for reporting, it should be fixed with 0.5.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants