Bitcoin Forum
April 30, 2024, 08:20:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Value of nSequence when it is less than FFFF FFFE  (Read 72 times)
NotATether (OP)
Legendary
*
Offline Offline

Activity: 1582
Merit: 6717


bitcoincleanup.com / bitmixlist.org


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.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714508458
Hero Member
*
Offline Offline

Posts: 1714508458

View Profile Personal Message (Offline)

Ignore
1714508458
Reply with quote  #2

1714508458
Report to moderator
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18509


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!