Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmd/evm/internal/t8ntool/transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,11 @@ func Transition(ctx *cli.Context) error {
var btleaves map[common.Hash]hexutil.Bytes
isBinary := chainConfig.IsVerkle(big.NewInt(int64(prestate.Env.Number)), prestate.Env.Timestamp)
if !isBinary {
// For MPT, use the standard collector
s.DumpToCollector(collector, nil)
} else {
// For Binary Trie, skip DumpToCollector (which assumes MPT format)
// and only collect raw leaves
btleaves = make(map[common.Hash]hexutil.Bytes)
if err := s.DumpBinTrieLeaves(btleaves); err != nil {
return err
Expand Down