Skip to content

Conversation

@Sjors
Copy link
Member

@Sjors Sjors commented Apr 23, 2019

This PR adds two convenience methods on top of #14912.

  • signersend: a convenience method that Just Works(tm) by combining the functionality of walletcreatefundedpsbt, signerprocesspsbt, finalizepsbt and sendrawtransaction

  • signerbumpfee: combines signersend with bumpfee

Usage:

bitcoin-cli signersend '[]' '[{"...": 0.001}]' 0 '{"feeRate": 0.00001, "replaceable": true}'
{
  "txid": "abcd..."
  "fee": "0.00000141"
}

bitcoin-cli signerbumpfee abcd..  '{"feeRate": 0.00002}'
{
  "txid": "efga..."
  "fee": "0.00000282",
  "origFee": "0.00000141"
}

signerbumpfee is a bit of a hack. In particular it breaks regular fee bump functionality for some wallets because I replaced ISMINE_SPENDABLE with ISMINE_ALL. I'd also like to make the code more reusable, but this can wait until the upstream PR is closer to merge.

@Sjors Sjors changed the title 2019/04/signerbumpfee [rpc] signer bump fee Apr 23, 2019
@Sjors
Copy link
Member Author

Sjors commented Apr 23, 2019

@MarcoFalke I think we should turn @DrahtBot off for draft PRs.

@Sjors Sjors force-pushed the 2019/04/signerbumpfee branch from 9c4d970 to 287a635 Compare April 24, 2019 19:00
@DrahtBot
Copy link
Contributor

DrahtBot commented Apr 24, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #16542 (Return more specific errors about invalid descriptors by achow101)
  • #16539 ([wallet] lower -txmaxfee default from 0.1 to 0.01 BTC by Sjors)
  • #16528 ([WIP] Native Descriptor Wallets (take 2) by achow101)
  • #16521 (wallet/rpc: Use the default maxfeerate value as BTC/kB by Remagpie)
  • #16492 (rpc: Add feeRate argument to bumpFee RPC by ezegom)
  • #16378 ([WIP] The ultimate send RPC by Sjors)
  • #16377 ([rpc] don't automatically append inputs in walletcreatefundedpsbt & fundrawtransaction by Sjors)
  • #16373 (Add bumpfee option to return PSBT instead of commiting to wallet by instagibbs)
  • #16365 (Log RPC parameters (arguments) if -debug=rpcparams by LarryRuane)
  • #16341 (Introduce ScriptPubKeyMan interface and use it for key and script management (aka wallet boxes) by achow101)
  • #16273 (refactor: Remove unused includes by practicalswift)
  • #15529 (Add Qt programs to msvc build (updated, no code changes) by sipsorcery)
  • #14912 ([WIP] External signer support (e.g. hardware wallet) by Sjors)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@Sjors Sjors force-pushed the 2019/04/signerbumpfee branch from 287a635 to ce6e421 Compare April 25, 2019 08:57
@Sjors Sjors force-pushed the 2019/04/signerbumpfee branch 2 times, most recently from 4ff734c to afaea2f Compare April 27, 2019 18:38
@Sjors Sjors force-pushed the 2019/04/signerbumpfee branch from afaea2f to d23d7ee Compare May 14, 2019 11:10
@Sjors Sjors changed the title [rpc] signer bump fee [rpc] signer send and fee bump convenience methods Jun 7, 2019
@Sjors Sjors force-pushed the 2019/04/signerbumpfee branch from d23d7ee to 892e9c1 Compare June 7, 2019 13:25
@Sjors Sjors force-pushed the 2019/04/signerbumpfee branch from 892e9c1 to 428dfe0 Compare July 5, 2019 15:17
Create basic ExternalSigner class with contructor. A Signer(<cmd>)
is added to CWallet on load if -signer=<cmd> is set.
@Sjors Sjors force-pushed the 2019/04/signerbumpfee branch from 428dfe0 to fd64d93 Compare August 2, 2019 19:38
@Sjors
Copy link
Member Author

Sjors commented Aug 2, 2019

Rebased. This contains some commits from #16378. The signerbumpfee RPC should be cleaned up after #16492.

@Sjors Sjors force-pushed the 2019/04/signerbumpfee branch from fd64d93 to 83fe48f Compare August 3, 2019 07:19
@Sjors Sjors closed this Aug 4, 2019
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants