TxRequestTracker::ReceivedResponse

Converts a CANDIDATE or REQUESTED announcement to a COMPLETED one. If no such announcement exists for the provided peer and txhash, nothing happens.

Synopsis

Declared in <txrequest.h>

void
ReceivedResponse(
    NodeId peer,
    uint256 const& txhash);

Description

It should be called whenever a transaction or NOTFOUND was received from a peer. When the transaction is not needed entirely anymore, ForgetTxhash should be called instead of, or in addition to, this call.

Parameters

NameDescription
peerPeer the response was received from.
txhashTransaction hash the response is for.