Bitcoin Forum
November 14, 2024, 07:45:04 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Replace-By-Fee with createrawtransaction is not working (Bitcoin Core v. 0.14.1)  (Read 530 times)
kimon (OP)
Member
**
Offline Offline

Activity: 83
Merit: 10


View Profile WWW
July 04, 2017, 09:45:02 PM
 #1

I'm use walletrbf=1 in config for my Bitcoin Core v. 0.14.1 client.

When I try to send transaction with "bitcoin-cli sendfrom" the flag bip125-replaceable (Replace By Fee) is setting to "yes" correctly.
But if I try to make transaction with 
"bitcoin-cli createrawtransaction"
"bitcoin-cli signrawtransaction"
Replace By Fee is not setting (bip125-replaceable=no).

What should I do for making transaction with Replace By Fee by createrawtransaction?
Or this is a Bitcoin Core bug?
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
July 04, 2017, 10:59:12 PM
 #2

When you create the raw transaction, try and set the sequence number to something less than "4294967295"... ie. less than the MAX_UINT32 value. (0xFFFFFFFF)

Looking at the RBF transactions that my wallet has automatically created via the GUI, they had a "sequence" value of : 4294967293

This seems to be the only requirement to mark your transaction as being "RBF".

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
July 04, 2017, 11:13:09 PM
 #3

The walletrbf=1 option sets RBF for transactions made by the wallet. Createrawtransaction is not part of the wallet, so this option doesn't affect it. In createrawtransaction, there's an optional sequence field that you can set when specifying the inputs. To set a transaction to Opt into RBF, you need to set the sequence for at least one input to be 4294967293 or lower.

kimon (OP)
Member
**
Offline Offline

Activity: 83
Merit: 10


View Profile WWW
July 05, 2017, 12:07:41 AM
 #4

Thank you guys!
It's working!
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!