Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
[RPC] Add RBF opt-in possibilities to rawtx functions #7159
Conversation
jonasschnelli
added
the
RPC/REST/ZMQ
label
Dec 3, 2015
|
Perhaps just parameterize the setting of |
petertodd
and 1 other
commented on an outdated diff
Dec 3, 2015
| @@ -343,6 +343,8 @@ UniValue createrawtransaction(const UniValue& params, bool fHelp) | ||
| " ...\n" | ||
| " }\n" | ||
| "3. locktime (numeric, optional, default=0) Raw locktime. Non-0 value also locktime-activates inputs\n" | ||
| + "4. opt into RBF (boolean, optional, default=false) Allow this transaction to be replaced by a transaction with height fees\n" |
|
|
|
I tend to agree with @dcousens, maybe this is slightly more 'user friendly', but allowing setting the underlying values is more in the spirit of raw transaction usage. |
For For
Right. There I guess instead of a RFB opt-in we could offer a easy way to set the nSequence number per input. |
|
Sure, for |
|
Don't extend createrawtransaction without also extending bitcoin-tx -- that's the preferred place for pure function work unconnected to wallet. |
|
Anti-sniping (which I think createrawtransaction should do by default) is an argument against bitcoin-tx; even absent that: the complete application of createrawtransaction is not pure function-- you had to get the txids for the coins from somewhere... but sure this should have parity in bitcoin-tx. I think createrawtransaction should gain the ability to manually set sequences per input. No more parameters are needed: just add "seq" to the dictionary that takes the vin/txid fields now. I don't see any harm in having a replacable flag that sets the default sequence to MAX-2. |
It's not an argument against bitcoin-tx. A program can get the current block number from anywhere and pass it to |
|
IIRC I agree with @jgarzik that bitcoin-tx should also support nSequence and/or RBF opt-in. I check now if it makes sense to extend bitcoin-tx within this PR (or if it require to much work in terms or parameter parsing and syntax). |
|
Added two bitcoin-tx related commits.
|
Are you going to add this? I think its a good idea. |
jonasschnelli
referenced this pull request
Dec 17, 2015
Merged
RPC: Indicate which transactions are signaling opt-in RBF #7222
Rebased & added a commit that allows to set the sequence per input when using |
|
@jonasschnelli what is the syntax OOI? (haven't had a chance to read the impl. yet) |
|
@dcousens: The inputs object in |
dcousens
and 1 other
commented on an outdated diff
Dec 29, 2015
| @@ -343,6 +344,8 @@ UniValue createrawtransaction(const UniValue& params, bool fHelp) | ||
| " ...\n" | ||
| " }\n" | ||
| "3. locktime (numeric, optional, default=0) Raw locktime. Non-0 value also locktime-activates inputs\n" | ||
| + "4. opt into RBF (boolean, optional, default=false) Allow this transaction to be replaced by a transaction with heigher fees\n" | ||
| + |
dcousens
Contributor
|
|
Here again the API changes: API changes: createrawtransaction [{\"txid\":\"id\",\"vout\":n, \"sequence\":},...]
{\"address\":amount,\"data\":\"hex\",...} ( locktime ) ( opt into Replace-By-Fee )[bool]
fundrawtransaction \"hexstring\" ( includeWatching ) ( opt into Replace-By-Fee )[bool] Bitcoin-Tx in=TXID:VOUT(:SEQUENCE_NUMBER) rbfoptin(=N) Set RBF opt-in sequence number for input N (if not provided, opt-in all available inputs Thanks for reviews. |
This was referenced Jan 14, 2016
added a commit
to luke-jr/bitcoin
that referenced
this pull request
Feb 13, 2016
added a commit
to luke-jr/bitcoin
that referenced
this pull request
Feb 13, 2016
added a commit
to luke-jr/bitcoin
that referenced
this pull request
Feb 13, 2016
added a commit
to luke-jr/bitcoin
that referenced
this pull request
Feb 13, 2016
added a commit
to luke-jr/bitcoin
that referenced
this pull request
Feb 13, 2016
added a commit
to luke-jr/bitcoin
that referenced
this pull request
Feb 13, 2016
added a commit
to luke-jr/bitcoin
that referenced
this pull request
Feb 13, 2016
added a commit
to luke-jr/bitcoin
that referenced
this pull request
Feb 13, 2016
luke-jr
referenced this pull request
Feb 13, 2016
Closed
Add multiple options to fundrawtransaction #7518
laanwj
added this to the 0.13.0 milestone
Apr 1, 2016
jonasschnelli
added some commits
Dec 3, 2015
|
Rebased. IMO the |
|
ut ACK |
This was referenced Apr 5, 2016
|
Closing in favor of #7865. |
jonasschnelli commentedDec 3, 2015
This allows to opt into RBF over the RPCs
createrawtransaction(wallet-less) andfundrawtransaction(requires wallet).API changes:
createrawtransaction [{\"txid\":\"id\",\"vout\":n, \"sequence\":},...] {\"address\":amount,\"data\":\"hex\",...} ( locktime ) ( opt into Replace-By-Fee )[bool]Bitcoin-Tx