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

Fix iteration over links storage #482

Closed
cyborgshead opened this issue Mar 4, 2020 · 1 comment
Closed

Fix iteration over links storage #482

cyborgshead opened this issue Mar 4, 2020 · 1 comment

Comments

@cyborgshead
Copy link
Member

Node failed on restart if any cyberlink applied to

I[2020-03-04|20:31:34.083] starting ABCI with Tendermint                module=main 
I[2020-03-04|20:31:34.130] Loading mem state                            module=main 
I[2020-03-04|20:31:34.138] App loaded                                   module=main time=7.343946ms
I[2020-03-04|20:31:34.145] Search index loaded!                         module=main time=2.564161ms
I[2020-03-04|20:31:34.146] Search index starting listen new rank        module=main 
I[2020-03-04|20:31:34.146] Search index starting listen new links       module=main 
I[2020-03-04|20:31:34.270] Rank constructing tree                       module=main time=1.135µs
I[2020-03-04|20:31:34.270] Rank calculated                              module=main time=40.433µs links=0 objects=0 hash=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
I[2020-03-04|20:31:34.347] Rank constructing tree                       module=main time=3.179µs
I[2020-03-04|20:31:34.347] Rank calculated                              module=main time=38.035µs links=1 objects=2 hash=16ff02a64b812c286dde852cedfa46433ee7fe5cc6b00f1e747ae77efbcc443d
panic: block.AppHash does not match AppHash after replay. Got C828AEE64A39B964658B9C932F4F1C4D2BD0E368F3AD544E46DDED6D03C14FA9, expected 102C218BA1AEF4BEA00DF2FEE12AE6EB66DDCF2073158CC7321D0F5E0B524E6F.

Block: Block{
  Header{
    Version:        {10 0}
    ChainID:        euler-x
    Height:         361
    Time:           2020-03-04 17:28:05.36630365 +0000 UTC
    LastBlockID:    05CFCC65E9027C6327D9C31A39358D19D8585A3A5F5B265D9AD4407347DB8622:1:9F6825A28454
    LastCommit:     1E0E99537A28506DE2DA72005E798ACC68AF533735B004298B6FBC92F7FCBF4E
    Data:           
    Validators:     3A3203805BCBF30DEA1E6E4068399C5A8E42353F50A9884CF65AEA0FEE3EFABF
    NextValidators: 3A3203805BCBF30DEA1E6E4068399C5A8E42353F50A9884CF65AEA0FEE3EFABF
    App:            102C218BA1AEF4BEA00DF2FEE12AE6EB66DDCF2073158CC7321D0F5E0B524E6F
    Consensus:      048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F
    Results:        
    Evidence:       
    Proposer:       47DAF0CE5033E7FC4705B30CFBA2BE8721360EE8
  }#5676CCEBE6F6D0CF47C3DE09B57915139843B1AA664103C6A27C795BFB5F7BFD
  Data{
    
  }#
  EvidenceData{
    
  }#
  Commit{
    Height:     360
    Round:      0
    BlockID:    05CFCC65E9027C6327D9C31A39358D19D8585A3A5F5B265D9AD4407347DB8622:1:9F6825A28454
    Signatures:
      CommitSig{8BA15043E7FE by 47DAF0CE5033 on 2 @ 2020-03-04T17:28:05.36630365Z}
  }#
}#5676CCEBE6F6D0CF47C3DE09B57915139843B1AA664103C6A27C795BFB5F7BFD
@cyborgshead
Copy link
Member Author

There is issue during links iteration in storage

binary.LittleEndian.PutUint64(endAsBytes, uint64(ver+1)) // Iterator end is exclusive.

@cyborgshead cyborgshead changed the title Broken state if link applied Broken state if link applied in Euler-6-RC1 Mar 5, 2020
@cyborgshead cyborgshead changed the title Broken state if link applied in Euler-6-RC1 Fix iteration over links storage Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant