PrivateBroadcast::Add

Add a transaction to the storage, or reset an exhausted transaction so it can be broadcast again.

Synopsis

Declared in <private_broadcast.h>

[[nodiscard, requires_capability(0x7f2e37684358), requires_capability(0x7f2e219d18d8), requires_capability(0x7f2e1ac64b08)]]
AddResult
Add(CTransactionRef const& tx);

Return Value

Whether the transaction was newly added or reset, was already present with send attempts remaining, or was rejected because the queue is full (see AddResult).

NOTE

The return value should not be discarded.

Parameters

NameDescription
tx [in]The transaction to add.