Bitcoin Forum
November 02, 2024, 06:28:07 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: opt-in ReplaceByFee: nSequence can vary per input?  (Read 501 times)
Mike Lee Torris (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 27, 2016, 01:09:12 PM
 #1

The recently added opt-in ReplaceByFee feature uses the nSequence number as a flag to indicate if the transaction is subject to RBF or not (or well, intended to be, in the end it's still up to individual nodes and miners to apply their own replacement policy).

However, in a Bitcoin transaction, each input has its own nSequence.

What nSequence is supposed to be interpreted as the RBF flag? The first input? The last? The largest? Or is it sufficient if the nSquence for just any one input (or more, or all) marks the tx the entire tx as RBF?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3542
Merit: 6884


Just writing some code


View Profile WWW
February 27, 2016, 03:32:47 PM
 #2

Any input's nSequence that is less than MAX_INT - 2 is sufficient to mark the entire transaction as replaceable.

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!