Bitcoin Forum
May 05, 2024, 10:49:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: opt-in ReplaceByFee: nSequence can vary per input?  (Read 484 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?
1714949374
Hero Member
*
Offline Offline

Posts: 1714949374

View Profile Personal Message (Offline)

Ignore
1714949374
Reply with quote  #2

1714949374
Report to moderator
1714949374
Hero Member
*
Offline Offline

Posts: 1714949374

View Profile Personal Message (Offline)

Ignore
1714949374
Reply with quote  #2

1714949374
Report to moderator
1714949374
Hero Member
*
Offline Offline

Posts: 1714949374

View Profile Personal Message (Offline)

Ignore
1714949374
Reply with quote  #2

1714949374
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714949374
Hero Member
*
Offline Offline

Posts: 1714949374

View Profile Personal Message (Offline)

Ignore
1714949374
Reply with quote  #2

1714949374
Report to moderator
1714949374
Hero Member
*
Offline Offline

Posts: 1714949374

View Profile Personal Message (Offline)

Ignore
1714949374
Reply with quote  #2

1714949374
Report to moderator
1714949374
Hero Member
*
Offline Offline

Posts: 1714949374

View Profile Personal Message (Offline)

Ignore
1714949374
Reply with quote  #2

1714949374
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


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!