Skip to content

Bad block, uncle header invalid, nonce invalid, database corrupted #2789

Closed
@JasonCoombs

Description

@JasonCoombs

The bad block event shown below wouldn't have been a problem, per se, but after I stopped and restarted Geth it mysteriously re-wrote the genesis block, ignoring the fully-synchronized blockchain data already present. Didn't know how to restore/fix the database in-place so I reverted to backups.

System information

$ geth version
Geth
Version: 1.4.9-stable
Protocol Versions: [63 62 61]
Network Id: 1
Go Version: go1.6.2
OS: windows

I0705 04:09:41.152047 core/blockchain.go:972] imported 1 block(s) (0 queued 0 ignored) including 1 txs in 96.0055ms. #1829597 [d7bb8d40 / d
7bb8d40]                                                                                                                                   
I0705 04:10:36.452210 core/blockchain.go:972] imported 1 block(s) (0 queued 0 ignored) including 9 txs in 35.002ms. #1829598 [6dc1870b / 6d
c1870b]                                                                                                                                    
I0705 04:10:52.912151 core/blockchain.go:972] imported 1 block(s) (0 queued 0 ignored) including 27 txs in 48.0027ms. #1829599 [aac07f16 / 
aac07f16]                                                                                                                                  
I0705 04:11:00.081561 core/blockchain.go:972] imported 1 block(s) (0 queued 0 ignored) including 7 txs in 17.001ms. #1829600 [2c753931 / 2c
753931]                                                                                                                                    
I0705 04:11:10.037131 core/blockchain.go:972] imported 1 block(s) (0 queued 0 ignored) including 5 txs in 14.0008ms. #1829601 [51a48999 / 5
1a48999]                                                                                                                                   
I0705 04:11:17.387551 core/blockchain.go:972] imported 1 block(s) (0 queued 0 ignored) including 4 txs in 15.0008ms. #1829602 [7927c616 / 7
927c616]                                                                                                                                   
E0705 04:11:24.176939 core/blockchain.go:1136] Bad block #1829603 (0x42c031b5ee7731203e72c3ae0ce14172a5bb6d657e4c177f3f93b89f26b9b6d8)     
E0705 04:11:24.176939 core/blockchain.go:1137]     uncle[0](e0563cab) header invalid: nonce for #1829598 [e0563cab41a9f1d02d81f4b172dd14852
4514c3b477b4896a264ef3b19fa9392…] is invalid (got 17780421374252739251)                                                                    
I0705 04:11:24.177940 eth/fetcher/fetcher.go:771] Peer 271970e37318e023: block #1829603 [42c031b5…] import failed: uncle[0](e0563cab) heade
r invalid: nonce for #1829598 [e0563cab41a9f1d02d81f4b172dd148524514c3b477b4896a264ef3b19fa9392…] is invalid (got 17780421374252739251) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions