[#SignalsOptInRBF]
= SignalsOptInRBF
:mrdocs:

Check whether the sequence numbers on this transaction are signaling opt&hyphen;in to replace&hyphen;by&hyphen;fee, according to BIP 125&period; Allow opt&hyphen;out of transaction replacement by setting nSequence &gt; MAX&lowbar;BIP125&lowbar;RBF&lowbar;SEQUENCE (SEQUENCE&lowbar;FINAL&hyphen;2) on all inputs&period;

== Synopsis

Declared in `&lt;util&sol;rbf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
SignalsOptInRBF(xref:CTransaction.adoc[CTransaction] const& tx);
----

== Description

SEQUENCE&lowbar;FINAL&hyphen;1 is picked to still allow use of nLockTime by non&hyphen;replaceable transactions&period; All inputs rather than just one is for the sake of multi&hyphen;party protocols, where we don&apos;t want a single party to be able to disable replacement by opting out in their own input&period;

== Return Value

true if any input signals opt&hyphen;in replaceability under BIP 125&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The transaction whose input sequence numbers are inspected&period;
|===


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