func (db *DB) IsNodeRegistered(pubkey [33]byte) bool {

	_, isPresent := db.keyToAddressMap[pubkey]

	if isPresent {
		return true
	}

	return false
}
//IsNodeRegistered checks if the node idenfied by pubkey is registered
//in the routing protocol
IsNodeRegistered checks if the node idenfied by pubkey is registered
in the routing protocol
// IsNodeRegistered checks if the node idenfied by pubkey is registered // in the routing protocol
func (db *DB) IsNodeRegistered(pubkey [33]byte) bool {
	_, isPresent := db.keyToAddressMap[pubkey]
	if isPresent {
		return true
	}
	return false
}
func ( db * DB ) IsNodeRegistered ( pubkey [ 33 ] byte ) bool { _ , isPresent := db . keyToAddressMap [ pubkey ] if isPresent { return true } return false }
IsNodeRegistered checks if the node idenfied by pubkey is registered
in the routing protocol
IsNodeRegistered checks if the node idenfied by pubkey is registered in the routing protocol