Process a received transaction and decide whether it should be validated.
Synopsis
Declared in <node/txdownloadman_impl.h>
std::pair<bool, std::optional<PackageToValidate>>
ReceivedTx(
NodeId nodeid,
CTransactionRef const& ptx);
Return Value
A pair whose bool says whether to validate the tx, with an optional package to validate instead.
Parameters
Name |
Description |
nodeid |
The peer that provided the transaction. |
ptx |
The received transaction. |
Created with MrDocs