Skip to content

Commit

Permalink
adjust statediff builder tests to changes and extend to test intermed…
Browse files Browse the repository at this point in the history
…iate nodes; golint
  • Loading branch information
i-norden committed Mar 11, 2020
1 parent c2c80f3 commit d07dc80
Show file tree
Hide file tree
Showing 5 changed files with 465 additions and 189 deletions.
2 changes: 1 addition & 1 deletion statediff/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (sdb *builder) collectDiffNodes(a, b trie.NodeIterator) (AccountsMap, error
case Leaf:
var account state.Account
if err := rlp.DecodeBytes(nodeElements[1].([]byte), &account); err != nil {
return nil, fmt.Errorf("error decoding account for leaf node at path %x\r\nerror: %v\r\n", nodePath, err)
return nil, fmt.Errorf("error decoding account for leaf node at path %x nerror: %v", nodePath, err)
}
partialPath := trie.CompactToHex(nodeElements[0].([]byte))
valueNodePath := append(nodePath, partialPath...)
Expand Down
Loading

0 comments on commit d07dc80

Please sign in to comment.