Skip to content

BAD BLOCK error in testnet after switch to V2 #369

@gzliudan

Description

@gzliudan

Souki Aoba reported a problem about BAD BLOCK error. I also found many errors in my log messages, such as:

INFO [11-21|19:51:06] [V2 Hook Penalty] parentHeader is nil, wait block to be writen in disk parentNumber=57147741
ERROR[11-21|19:51:06] [V2 Hook Penalty] parentHeader is nil, wait too long not writen in to disk parentNumber=57147741
ERROR[11-21|19:51:06] [calcMasternodes] Adaptor v2 HookPenalty has error err="parentHeader is nil"
ERROR[11-21|19:51:06] [verifyHeader] Fail to calculate master nodes list with penalty Number=57147742 Hash=4bc5e4…85d452
WARN [11-21|19:51:06] [VerifyHeaders] Fail to verify header    fullVerify=false blockNum=57147742 blockHash=4bc5e4…85d452 error="parentHeader is nil"
ERROR[11-21|19:51:06]
########## BAD BLOCK #########
Chain config: {"chainId":51,"homesteadBlock":1,"eip150Block":2,"eip150Hash":"0x0000000000000000000000000000000000000000000000000000000000000000","eip155Block":3,"eip158Block":3,"byzantiumBlock":4,"XDPoS":{"period":2,"epoch":900,"reward":5000,"rewardCheckpoint":900,"gap":450,"foudat
ionWalletAddr":"xdc746249c61f5832c5eed53172776b460491bdcd5c","SkipV1Validation":false,"v2":{"switchBlock":56828700,"config":{"switchRound":0,"minePeriod":2,"timeoutSyncThreshold":3,"timeoutPeriod":60,"certificateThreshold":7},"allConfigs":{"0":{"switchRound":0,"minePeriod":2,"timeo
utSyncThreshold":3,"timeoutPeriod":60,"certificateThreshold":7}},"SkipV2Validation":false}}}

Number: 57147742
Hash: 0x4bc5e45081313bc972a80e22e9e7942905e02d3b351ccbf246d565fba785d452


Round: 319500
Error: <nil>
##############################

And the above error does not affect synchronization.

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