CalculateSequenceLocks | Calculates the block height and previous block's median time past at which the transaction will be considered final in the context of BIP 68. For each input that is not sequence locked, the corresponding entries in prevHeights are set to 0 as they do not affect the calculation. |
CheckTransaction | Performs context-independent validity checks on a transaction. |
EncodeHexTx | Serialize a transaction and encode it as a hex string. |
GetDust | Get the vout index numbers of all dust outputs |
GetEntriesForConflicts | Get all descendants of iters_conflicting. Checks that there are no more than MAX_REPLACEMENT_CANDIDATES distinct clusters affected. |
GetLegacySigOpCount | Count ECDSA signature operations the old-fashioned (pre-0.6) way |
GetP2SHSigOpCount | Count ECDSA signature operations in pay-to-script-hash inputs. |
GetTransactionSigOpCost | Compute total signature operation cost of a transaction. |
GetVirtualTransactionSize | Compute the virtual size of a transaction, accounting for sigop cost. |
IsFinalTx | Check if transaction is final and can be included in a block with the specified height and time. Consensus critical. |
IsRBFOptIn | Determine whether an unconfirmed transaction is signaling opt-in to RBF according to BIP 125 This involves checking sequence numbers of the transaction, as well as the sequence numbers of all in-mempool ancestors. |
IsRBFOptInEmptyMempool | Determine the RBF signaling state of a transaction assuming an empty mempool. |
IsStandardTx | Check for standard transaction types |
IsWitnessStandard | Check if the transaction is over standard P2WSH resources limit: 3600bytes witnessScript size, 80bytes per witness stack element, 100 witness stack elements These limits are adequate for multisignatures up to n-of-100 using OP_CHECKSIG, OP_ADD, and OP_EQUAL. |
PreCheckEphemeralTx | Called for each transaction once transaction fees are known. Does context-less checks about a single transaction. |
SequenceLocks | Check if transaction is final per BIP 68 sequence numbers and can be included in a block. Consensus critical. Takes as input a list of heights at which tx's inputs (in order) confirmed. |
SignalsOptInRBF | Check whether the sequence numbers on this transaction are signaling opt-in to replace-by-fee, according to BIP 125. Allow opt-out of transaction replacement by setting nSequence > MAX_BIP125_RBF_SEQUENCE (SEQUENCE_FINAL-2) on all inputs. |
SpendsNonAnchorWitnessProg | Check whether this transaction spends any witness program but P2A, including not-yet-defined ones. May return false early for consensus-invalid transactions. |
TxToUniv | Fill a JSON object with a human-readable description of a transaction. |
ValidateInputsStandardness | Check for standard transaction types |
Consensus::CheckTxInputs | Check whether all inputs of this transaction are valid (no double spends and amounts) This does not modify the UTXO set. This does not check scripts and sigs. |
wallet::CalculateMaximumSignedTxSize | Calculate the size of the transaction using CoinControl to determine whether to expect signature grinding when calculating the size of the input spend. |
wallet::CalculateMaximumSignedTxSize | Calculate the size of the transaction, looking up previous outputs from the wallet. |