@api_request
@reply_type([ProtocolMessageTypes.respond_transaction])
async def request_transaction(self, request: full_node_protocol.RequestTransaction) -> Optional[Message]:
    'Peer has requested a full transaction from us.'
    if self.full_node.sync_store.get_sync_mode():
        return None
    spend_bundle = self.full_node.mempool_manager.get_spendbundle(request.transaction_id)
    if (spend_bundle is None):
        return None
    transaction = full_node_protocol.RespondTransaction(spend_bundle)
    msg = make_msg(ProtocolMessageTypes.respond_transaction, transaction)
    return msg
Peer has requested a full transaction from us.
@api_request
@reply_type([ProtocolMessageTypes.respond_transaction])
async def request_transaction(self, request: full_node_protocol.RequestTransaction) -> Optional[Message]:
    
    if self.full_node.sync_store.get_sync_mode():
        return None
    spend_bundle = self.full_node.mempool_manager.get_spendbundle(request.transaction_id)
    if (spend_bundle is None):
        return None
    transaction = full_node_protocol.RespondTransaction(spend_bundle)
    msg = make_msg(ProtocolMessageTypes.respond_transaction, transaction)
    return msg