trie: prefer nil slices over zero-length slices (#19084)
This commit is contained in:
committed by
Felix Lange
parent
f1537b774c
commit
514a9472ad
@ -313,7 +313,7 @@ func TestIncompleteSync(t *testing.T) {
|
||||
triedb := NewDatabase(diskdb)
|
||||
sched := NewSync(srcTrie.Hash(), diskdb, nil)
|
||||
|
||||
added := []common.Hash{}
|
||||
var added []common.Hash
|
||||
queue := append([]common.Hash{}, sched.Missing(1)...)
|
||||
for len(queue) > 0 {
|
||||
// Fetch a batch of trie nodes
|
||||
|
Reference in New Issue
Block a user