diff options
Diffstat (limited to 'trie/sync.go')
-rw-r--r-- | trie/sync.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trie/sync.go b/trie/sync.go index ef931f633..85f1b0f85 100644 --- a/trie/sync.go +++ b/trie/sync.go @@ -101,7 +101,7 @@ func (s *Sync) AddSubTrie(root common.Hash, depth int, parent common.Hash, callb } key := root.Bytes() blob, _ := s.database.Get(key) - if local, err := decodeNode(key, blob, 0); local != nil && err == nil { + if local, err := decodeNode(key, blob); local != nil && err == nil { return } // Assemble the new sub-trie sync request @@ -187,7 +187,7 @@ func (s *Sync) Process(results []SyncResult) (bool, int, error) { continue } // Decode the node data content and update the request - node, err := decodeNode(item.Hash[:], item.Data, 0) + node, err := decodeNode(item.Hash[:], item.Data) if err != nil { return committed, i, err } |