@@ -59,7 +59,7 @@ func TestIterator(t *testing.T) {
5959 all [val .k ] = val .v
6060 trie .MustUpdate ([]byte (val .k ), []byte (val .v ))
6161 }
62- root , nodes , _ := trie .Commit (false )
62+ root , nodes := trie .Commit (false )
6363 db .Update (root , types .EmptyRootHash , trienode .NewWithNodeSet (nodes ))
6464
6565 trie , _ = New (TrieID (root ), db )
@@ -257,7 +257,7 @@ func TestDifferenceIterator(t *testing.T) {
257257 for _ , val := range testdata1 {
258258 triea .MustUpdate ([]byte (val .k ), []byte (val .v ))
259259 }
260- rootA , nodesA , _ := triea .Commit (false )
260+ rootA , nodesA := triea .Commit (false )
261261 dba .Update (rootA , types .EmptyRootHash , trienode .NewWithNodeSet (nodesA ))
262262 triea , _ = New (TrieID (rootA ), dba )
263263
@@ -266,7 +266,7 @@ func TestDifferenceIterator(t *testing.T) {
266266 for _ , val := range testdata2 {
267267 trieb .MustUpdate ([]byte (val .k ), []byte (val .v ))
268268 }
269- rootB , nodesB , _ := trieb .Commit (false )
269+ rootB , nodesB := trieb .Commit (false )
270270 dbb .Update (rootB , types .EmptyRootHash , trienode .NewWithNodeSet (nodesB ))
271271 trieb , _ = New (TrieID (rootB ), dbb )
272272
@@ -299,7 +299,7 @@ func TestUnionIterator(t *testing.T) {
299299 for _ , val := range testdata1 {
300300 triea .MustUpdate ([]byte (val .k ), []byte (val .v ))
301301 }
302- rootA , nodesA , _ := triea .Commit (false )
302+ rootA , nodesA := triea .Commit (false )
303303 dba .Update (rootA , types .EmptyRootHash , trienode .NewWithNodeSet (nodesA ))
304304 triea , _ = New (TrieID (rootA ), dba )
305305
@@ -308,7 +308,7 @@ func TestUnionIterator(t *testing.T) {
308308 for _ , val := range testdata2 {
309309 trieb .MustUpdate ([]byte (val .k ), []byte (val .v ))
310310 }
311- rootB , nodesB , _ := trieb .Commit (false )
311+ rootB , nodesB := trieb .Commit (false )
312312 dbb .Update (rootB , types .EmptyRootHash , trienode .NewWithNodeSet (nodesB ))
313313 trieb , _ = New (TrieID (rootB ), dbb )
314314
@@ -371,7 +371,7 @@ func testIteratorContinueAfterError(t *testing.T, memonly bool, scheme string) {
371371 for _ , val := range testdata1 {
372372 tr .MustUpdate ([]byte (val .k ), []byte (val .v ))
373373 }
374- root , nodes , _ := tr .Commit (false )
374+ root , nodes := tr .Commit (false )
375375 tdb .Update (root , types .EmptyRootHash , trienode .NewWithNodeSet (nodes ))
376376 if ! memonly {
377377 tdb .Commit (root )
@@ -481,7 +481,7 @@ func testIteratorContinueAfterSeekError(t *testing.T, memonly bool, scheme strin
481481 for _ , val := range testdata1 {
482482 ctr .MustUpdate ([]byte (val .k ), []byte (val .v ))
483483 }
484- root , nodes , _ := ctr .Commit (false )
484+ root , nodes := ctr .Commit (false )
485485 for path , n := range nodes .Nodes {
486486 if n .Hash == barNodeHash {
487487 barNodePath = []byte (path )
@@ -561,7 +561,7 @@ func testIteratorNodeBlob(t *testing.T, scheme string) {
561561 all [val .k ] = val .v
562562 trie .MustUpdate ([]byte (val .k ), []byte (val .v ))
563563 }
564- root , nodes , _ := trie .Commit (false )
564+ root , nodes := trie .Commit (false )
565565 triedb .Update (root , types .EmptyRootHash , trienode .NewWithNodeSet (nodes ))
566566 triedb .Commit (root )
567567
0 commit comments