swarm/network: Uncomment bootnode record load

This commit is contained in:
lash 2019-03-15 10:36:01 +01:00
parent c017e8db37
commit 4b1d0e4c6c

View file

@ -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())