This commit is contained in:
Jared Wasinger 2025-10-27 14:52:40 +08:00
parent 27aef146f5
commit 2fc29f6188

View file

@ -77,11 +77,11 @@ func newValueNode(resolver func() []byte) *valueNode {
} }
} }
func (v *valueNode) resolve() []byte { func (n *valueNode) resolve() []byte {
if v.val == nil { if n.val == nil {
v.val = v.resolver() n.val = n.resolver()
} }
return v.val return n.val
} }
// EncodeRLP encodes a full node into the consensus RLP format. // EncodeRLP encodes a full node into the consensus RLP format.