From 94140c7cb7e99dc032cfc5a8a1a08c5f983e0ba3 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Tue, 7 Nov 2023 14:11:30 +0100 Subject: [PATCH] minor fixes --- ethdb/memorydb/memorydb_test.go | 2 +- trie/sync_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ethdb/memorydb/memorydb_test.go b/ethdb/memorydb/memorydb_test.go index a8845f1975..51499c3b1f 100644 --- a/ethdb/memorydb/memorydb_test.go +++ b/ethdb/memorydb/memorydb_test.go @@ -17,9 +17,9 @@ package memorydb import ( + "encoding/binary" "testing" - "encoding/binary" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/ethdb/dbtest" ) diff --git a/trie/sync_test.go b/trie/sync_test.go index 3b7986ef67..7032c6d2f7 100644 --- a/trie/sync_test.go +++ b/trie/sync_test.go @@ -571,7 +571,7 @@ func testIncompleteSync(t *testing.T, scheme string) { hash := crypto.Keccak256Hash(result.Data) if hash != root { addedKeys = append(addedKeys, result.Path) - addedHashes = append(addedHashes, crypto.Keccak256Hash(result.Data)) + addedHashes = append(addedHashes, hash) } } // Fetch the next batch to retrieve