HomeThat World

trie: remove node ordering slice in sync batch (#19929)

Authored by gary rong <garyrong0905@gmail.com> on Oct 28 2019, 5:50 PM.

Description

trie: remove node ordering slice in sync batch (#19929)

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

Details

Event Timeline

Felix Lange <fjl@twurst.com> committed rGETHecdbb402ee08: trie: remove node ordering slice in sync batch (#19929) (authored by gary rong <garyrong0905@gmail.com>).Oct 28 2019, 5:50 PM