def wait_for_nodeid(self): pubkey, x, y = get_nodeid(self) self.key = eth_utils.encode_hex(pubkey) addr_tmp = bytearray(sha3(encode_int32(x) + encode_int32(y))[12:]) addr_tmp[0] &= 0x0f addr_tmp[0] |= 0x10 self.addr = addr_tmp self.log.debug("Get node {} nodeid {}".format(self.index, self.key))
def wait_for_nodeid(self): pubkey, x, y = get_nodeid(self) self.key = eth_utils.encode_hex(pubkey) self.addr = sha3(encode_int32(x) + encode_int32(y))[12:] self.log.debug("Get node {} nodeid {}".format(self.index, self.key))