[#TxRequestTracker-ReceivedResponse]
= xref:TxRequestTracker.adoc[TxRequestTracker]::ReceivedResponse
:relfileprefix: ../
:mrdocs:

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

== Synopsis

Declared in `&lt;txrequest&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
ReceivedResponse(
    xref:NodeId-08.adoc[NodeId] peer,
    xref:uint256.adoc[uint256] const& txhash);
----

== Description

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *peer*
| Peer the response was received from&period;
| *txhash*
| Transaction hash the response is for&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
