good morning!!!!

Skip to content
Snippets Groups Projects
Forked from github / maticnetwork / bor
Source project has a limited visibility.
  • Gary Rong's avatar
    ecdbb402
    trie: remove node ordering slice in sync batch (#19929) · ecdbb402
    Gary Rong authored
    When we flush a batch of trie nodes into database during the state
    sync, we should guarantee that all children should be flushed before
    parent.
    
    Actually the trie nodes commit order is strict by: children -> parent.
    But when we flush all ready nodes into db, we don't need the order
    anymore since
    
        (1) they are all ready nodes (no more dependency)
        (2) underlying database provides write atomicity
    ecdbb402
    History
    trie: remove node ordering slice in sync batch (#19929)
    Gary Rong authored
    When we flush a batch of trie nodes into database during the state
    sync, we should guarantee that all children should be flushed before
    parent.
    
    Actually the trie nodes commit order is strict by: children -> parent.
    But when we flush all ready nodes into db, we don't need the order
    anymore since
    
        (1) they are all ready nodes (no more dependency)
        (2) underlying database provides write atomicity
Code owners
Assign users and groups as approvers for specific file changes. Learn more.