BIP125 is the standard way to signal:https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki

Should explain everything you need.

On Thu, Jan 12, 2017 at 9:02 AM, Police Terror via bitcoin-dev <

Post by Police Terror via bitcoin-devHello,Where can I find the rules on transaction replacement?For instance what are the valid ranges for the sequence values intransaction inputs? Normally I set this value to MAX_UINT32, and thelocktime to 0.Can I change the outputs? Can I add more inputs to pay a higher fee?Just looking for clarity on this aspect of Bitcoin. Any resources wouldbe much appreciated.Thanks._______________________________________________bitcoin-dev mailing listhttps://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev

Additionally some miners mine full replace-by-fee, which has no limitations onnSequence. My implementation (for v0.13.2) is here:

https://github.com/petertodd/bitcoin/tree/replace-by-fee-v0.13.2

and is identical to Bitcoin Core modulo the nSequence stuff being removed, anda special service bit added to allow full-rbf nodes to preferentially peer witheach other to make sure replacement transactions get propagated.

In practice full-RBF works fairly well, so while it's even faster to use thenSequence signalling specified in BIP-125, doing so is not mandatory so long asyou can et your replacement transaction to a full-RBF node.

Hi, recently been trying to get RBF working on a multisig input. I setthe nSequence to 0, but script didn't verify (used python-bitcoinlib).Should it work for this type of transaction? I am using theSignatureHash(...) method of signing, not rpc.signrawtransaction(...).

Additionally some miners mine full replace-by-fee, which has no limitations onhttps://github.com/petertodd/bitcoin/tree/replace-by-fee-v0.13.2and is identical to Bitcoin Core modulo the nSequence stuff being removed, anda special service bit added to allow full-rbf nodes to preferentially peer witheach other to make sure replacement transactions get propagated.In practice full-RBF works fairly well, so while it's even faster to use thenSequence signalling specified in BIP-125, doing so is not mandatory so long asyou can et your replacement transaction to a full-RBF node.--_______________________________________________bitcoin-dev mailing listhttps://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev