func (db *DB) GetNodeAddress(pubkey [33]byte) ([4]byte, bool) {

	addressNode, isPresent := db.keyToAddressMap[pubkey]

	if !isPresent {
		return [4]byte{}, false
	}

	addressInfo := addressNode.getData().(*addressInfo)
	return addressInfo.address, true
}
//GetNodeAddress retruns the routing address of the node associated with
//the lightning pubkey id
GetNodeAddress retruns the routing address of the node associated with
the lightning pubkey id
// GetNodeAddress retruns the routing address of the node associated with // the lightning pubkey id
func (db *DB) GetNodeAddress(pubkey [33]byte) ([4]byte, bool) {
	addressNode, isPresent := db.keyToAddressMap[pubkey]
	if !isPresent {
		return [4]byte{}, false
	}
	addressInfo := addressNode.getData().(*addressInfo)
	return addressInfo.address, true
}
func ( db * DB ) GetNodeAddress ( pubkey [ 33 ] byte ) ( [ 4 ] byte , bool ) { addressNode , isPresent := db . keyToAddressMap [ pubkey ] if ! isPresent { return [ 4 ] byte { } , false } addressInfo := addressNode . getData ( ) . ( * addressInfo ) return addressInfo . address , true }
GetNodeAddress retruns the routing address of the node associated with
the lightning pubkey id
GetNodeAddress retruns the routing address of the node associated with the lightning pubkey id