mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
fix: correct pointer usage in node loading function
This commit is contained in:
parent
a0785b07c9
commit
23a5bda5f6
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ func NewNodeFilter(chain *core.BlockChain) func(*enode.Node) bool {
|
|||
filter := forkid.NewFilter(chain)
|
||||
return func(n *enode.Node) bool {
|
||||
var entry enrEntry
|
||||
if err := n.Load(entry); err != nil {
|
||||
if err := n.Load(&entry); err != nil {
|
||||
return false
|
||||
}
|
||||
err := filter(entry.ForkID)
|
||||
|
|
|
|||
Loading…
Reference in a new issue