Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
darioush committed Jan 3, 2025
1 parent 1655aa9 commit 12bed94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shim/legacy/legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (l *Legacy) Update(batch triedb.Batch) (common.Hash, error) {
if len(kv.Key) == 64 {
continue
}
fmt.Println("Account Update", kv.Key, kv.Value)
fmt.Printf("Account Update: %x, %x\n", kv.Key, kv.Value)
accounts.MustUpdate(kv.Key, kv.Value)
}
next, set, err := accounts.Commit(true)
Expand All @@ -89,6 +89,7 @@ func (l *Legacy) Update(batch triedb.Batch) (common.Hash, error) {
if err := l.triedb.Update(next, l.root, l.count, nodes, nil); err != nil {
return common.Hash{}, err
}
fmt.Printf("Legacy Update: %x\n", next)

// TODO: fix hashdb scheme later
l.root = next
Expand Down

0 comments on commit 12bed94

Please sign in to comment.