From 061889d4ea13b23d777efbe005210ead8667e869 Mon Sep 17 00:00:00 2001 From: "S. Matthew English" Date: Mon, 12 Jun 2017 14:45:17 +0200 Subject: rlp, trie, contracts, compression, consensus: improve comments (#14580) --- trie/sync_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'trie/sync_test.go') diff --git a/trie/sync_test.go b/trie/sync_test.go index 1e27cbb67..d778555b9 100644 --- a/trie/sync_test.go +++ b/trie/sync_test.go @@ -42,7 +42,7 @@ func makeTestTrie() (ethdb.Database, *Trie, map[string][]byte) { content[string(key)] = val trie.Update(key, val) - // Add some other data to inflate th trie + // Add some other data to inflate the trie for j := byte(3); j < 13; j++ { key, val = common.LeftPadBytes([]byte{j, i}, 32), []byte{j, i} content[string(key)] = val @@ -78,7 +78,7 @@ func checkTrieConsistency(db Database, root common.Hash) error { // Create and iterate a trie rooted in a subnode trie, err := New(root, db) if err != nil { - return nil // // Consider a non existent state consistent + return nil // Consider a non existent state consistent } it := trie.NodeIterator(nil) for it.Next(true) { @@ -310,7 +310,7 @@ func TestIncompleteTrieSync(t *testing.T) { for _, result := range results { added = append(added, result.Hash) } - // Check that all known sub-tries in the synced trie is complete + // Check that all known sub-tries in the synced trie are complete for _, root := range added { if err := checkTrieConsistency(dstDb, root); err != nil { t.Fatalf("trie inconsistent: %v", err) -- cgit