mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/network: Uncomment bootnode record load
This commit is contained in:
parent
c017e8db37
commit
4b1d0e4c6c
1 changed files with 2 additions and 2 deletions
|
|
@ -62,12 +62,12 @@ func (b ENRBootNodeEntry) ENRKey() string {
|
|||
|
||||
func getENRBzzPeer(p *p2p.Peer, rw p2p.MsgReadWriter, spec *protocols.Spec) *BzzPeer {
|
||||
var lightnode ENRLightNodeEntry
|
||||
//var bootnode ENRBootNodeEntry
|
||||
var bootnode ENRBootNodeEntry
|
||||
|
||||
// retrieve the ENR Record data
|
||||
record := p.Node().Record()
|
||||
record.Load(&lightnode)
|
||||
//record.Load(&bootnode)
|
||||
record.Load(&bootnode)
|
||||
|
||||
// get the address; separate function as long as we need swarm/network:NewAddr() to call it
|
||||
addr := getENRBzzAddr(p.Node())
|
||||
|
|
|
|||
Loading…
Reference in a new issue