axieinfinity / ronin

A DPoS blockchain.
GNU Lesser General Public License v3.0
67 stars 30 forks source link

trie: refactor tracer #581

Closed Francesco4203 closed 1 month ago

Francesco4203 commented 1 month ago

Reference: https://github.com/ethereum/go-ethereum/pull/26763

Also applied some related changes from this PR: https://github.com/ethereum/go-ethereum/pull/27160

Changes:

huyngopt1994 commented 1 month ago

One thing note here in PR is tracer is enabled by default

    trie := &Trie{
        owner:  id.Owner,
        reader: reader,
        //tracer: newTracer(),
        tracer: newTracer(),
    }
huyngopt1994 commented 1 month ago

I think u should spit one commit in the PR into more commits for easily reviewing, merging into one 's hard for understanding the purpose of changes.