iotex-core icon indicating copy to clipboard operation
iotex-core copied to clipboard

[trie] Separate sync mode and async mode in Trie

Open Liuhaai opened this issue 3 years ago • 0 comments

What would you like to be added: Create branchnode_sync.go, leafnode_sync.go, extensionnode_sync.go under ./db/trie/mptrie

Why is this needed: We switched trie from sync mode to async mode by a hardfork. Currently, the sync mode is only useful for blks below the hardfork height. Separating them from current code will improve code readability.

Liuhaai avatar Mar 06 '22 00:03 Liuhaai