Fix RBF detection to use the BIP-125 sequence threshold

This commit is contained in:
/dev/fd0 2026-06-26 02:43:58 +05:30
parent 1b03d67ac7
commit 4361dd9a4b

View file

@ -308,7 +308,7 @@ function analyzeTransaction(tx, txInputs, txBlockHeight, currentBlockHeight, ext
version: tx.version,
haveInputData,
antiFeeSniping: tx.locktime > 0,
rbf: inputs.some((i) => i.sequence != null && i.sequence < 0xffffffff),
rbf: inputs.some((i) => i.sequence != null && i.sequence < 0xfffffffe),
onlyNativeSegwit: haveInputData && inTypes.every((t) => t === "p2wpkh"),
multiType: inTypes.length > 1,
compressed: compressedKeysOnly(inputs),