def on_reject(self, conn, message):
    if (message.message == b'tx'):
        self.tx_reject_map[message.data] = RejectResult(message.code, message.reason)
    if (message.message == b'block'):
        self.block_reject_map[message.data] = RejectResult(message.code, message.reason)
def on_reject(self, conn, message):
    if (message.message == b'tx'):
        self.tx_reject_map[message.data] = RejectResult(message.code, message.reason)
    if (message.message == b'block'):
        self.block_reject_map[message.data] = RejectResult(message.code, message.reason)