Bitcoin Forum
November 11, 2024, 09:28:28 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is bip125-replaceable set to 0 on confirmed txes?  (Read 172 times)
jnano (OP)
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
March 26, 2018, 11:26:24 PM
 #1

gettransaction for a tx that was sent with RBF shows "bip125-replaceable": "no".
Is the flag reset once a tx gets into a block?
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
March 26, 2018, 11:41:05 PM
 #2

The transaction still has a replacable flag, confirmed or not. However, the client ignores that once its confirmed; you can't use RBF on a confirmed transaction.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
jnano (OP)
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
March 26, 2018, 11:47:35 PM
 #3

I wanted to check if a confirmed tx had the flag set or not.
Wouldn't it make more sense to show the actual flag?

ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
March 27, 2018, 12:03:16 AM
 #4

I wanted to check if a confirmed tx had the flag set or not.
Wouldn't it make more sense to show the actual flag?
IMO, no. If a confirmed transaction can't be replaced, it wouldn't matter if it had the flag. Doing so would just cause more confusion.

You can get the raw transaction and check its sequence for that. People don't usually need to check it once its confirmed.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
jnano (OP)
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
March 27, 2018, 12:29:21 AM
 #5

The current way is more confusing, as one expects the command to interpret the bit data of the transaction.

Knowing that RBF can't be used on txes already in a block seems self-evident? Especially to people who would use commands to check it.
Even if not, it's easier to learn that RBF only applies to the mempool than it is to manually check a raw transaction.

But how about a compromise... Smiley

Code:
bip125-replaceable: yes (only in mempool)

(Can anyone move the thread to Development & Technical Discussion?)
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
March 27, 2018, 04:37:12 AM
Merited by ABCbits (2)
 #6

gettransaction for a tx that was sent with RBF shows "bip125-replaceable": "no".
Is the flag reset once a tx gets into a block?
Yes (basically). Once a transaction is confirmed, it is, by definition, no longer replaceable under BIP 125, therefore the field bip125-replaceable will say "no".

The current way is more confusing, as one expects the command to interpret the bit data of the transaction.
There's actually a bit more to whether something is actually replaceable than just the signalling. That is included in the checks for labeling a transaction as replaceable.

Knowing that RBF can't be used on txes already in a block seems self-evident? Especially to people who would use commands to check it.
Just because a confirmed transaction signals it does not necessarily mean that it was actually replaceable when in the mempool.

(Can anyone move the thread to Development & Technical Discussion?)
I moved it for you, but next time, do it yourself (OPs can move their threads) or use the report to moderator link.

jnano (OP)
Member
**
Offline Offline

Activity: 301
Merit: 74


View Profile
March 27, 2018, 04:25:45 PM
 #7

Then maybe break it apart to two fields, RBF-flag: 0/1 and RBF-replaceable: 0/1 (reason: [already in block/other/reasons...).

Thanks for the move. I replied to a thread which I mistakenly thought was in Dev & Tech, then posted this in the same subforum without noticing it was actually Tech Support. Didn't know OPs can move.
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!