• gary rong's avatar
    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
sync_test.go 12.3 KB