trie: prefer nil slices over zero-length slices (#19084)
This commit is contained in:
committed by
Felix Lange
parent
f1537b774c
commit
514a9472ad
@ -37,7 +37,7 @@ import (
|
||||
func (t *Trie) Prove(key []byte, fromLevel uint, proofDb ethdb.Putter) error {
|
||||
// Collect all nodes on the path to key.
|
||||
key = keybytesToHex(key)
|
||||
nodes := []node{}
|
||||
var nodes []node
|
||||
tn := t.root
|
||||
for len(key) > 0 && tn != nil {
|
||||
switch n := tn.(type) {
|
||||
|
Reference in New Issue
Block a user