Bitcoin Forum
November 06, 2024, 07:28:23 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Value of nSequence when it is less than FFFF FFFE  (Read 96 times)
NotATether (OP)
Legendary
*
Offline Offline

Activity: 1778
Merit: 7362


Top Crypto Casino


View Profile WWW
December 28, 2023, 11:25:30 AM
Merited by ABCbits (4), o_e_l_e_o (4)
 #1

So I am aware that in order to enable RBF, a transaction input must have an nSequence that is less than FFFF FFFF - 1 (in other words less than FFFF FFFE ), FFFF FFFF is the preferred one here because FFFF FFFE is used when you also want to make use of locktime.

But do any of the lower sequence values have any significance in the RBF transaction? Presumably, transaction replacement is governed by the transaction fee, so that one with a higher fee (as well as paying additional tx size * minrelayfee) replaces a lower one. But does the sequence number have any effect at all?

Meaning is an nSequence of 0 equivalent to FFFF 0000 and 0000 4000 and FFFF FFFD in this context?

I am also aware of this in BIP125:

Quote
Inherited signaling: Transactions that don't explicitly signal replaceability are replaceable under this policy for as long as any one of their ancestors signals replaceability and remains unconfirmed.

But it doesn't really answer my question.

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18746


View Profile
December 28, 2023, 12:25:19 PM
Merited by ABCbits (2), NotATether (2)
 #2

But do any of the lower sequence values have any significance in the RBF transaction?
Lower nSequence values imply a relative timelock, as specified by BIP68.

Presumably, transaction replacement is governed by the transaction fee, so that one with a higher fee (as well as paying additional tx size * minrelayfee) replaces a lower one. But does the sequence number have any effect at all?
In terms of RBF, no. The nSequence number signals replaceability, but higher nSequence numbers are not prioritized over lower ones. It is based on fee alone.

Meaning is an nSequence of 0 equivalent to FFFF 0000 and 0000 4000 and FFFF FFFD in this context?
Strictly in terms of the RBF, it makes no difference. But it could make a difference if your replacement transaction includes a timelock which means it can not yet be mined.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!