Skip to content

Conversation

@kwvg
Copy link
Collaborator

@kwvg kwvg commented Feb 5, 2024

Additional Information

Extracted from dash#5842 due to breaking changes and placed into its own PR to be merged during new major version development cycle.

Breaking Changes

(Taken from release-notes-5861.md)

  • The walletcreatefundedpsbt RPC call will now fail with Insufficient funds when inputs are manually selected but are not enough to cover the outputs and fee. Additional inputs can automatically be added through the new add_inputs option.

  • The fundrawtransaction RPC now supports add_inputs option that when false prevents adding more inputs if necessary and consequently the RPC fails.

  • A new send RPC with similar syntax to walletcreatefundedpsbt, including support for coin selection and a custom fee rate. The send RPC is experimental and may change in subsequent releases. Using it is encouraged once it's no longer experimental: sendmany and sendtoaddress may be deprecated in a future release.

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas (note: N/A)
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation (note: N/A)
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

@github-actions
Copy link

github-actions bot commented Feb 6, 2024

This pull request has conflicts, please rebase.

@github-actions
Copy link

github-actions bot commented Feb 9, 2024

This pull request has conflicts, please rebase.

@kwvg kwvg added this to the 21 milestone Mar 6, 2024
@kwvg kwvg marked this pull request as ready for review March 6, 2024 14:38
PastaPastaPasta
PastaPastaPasta previously approved these changes Mar 6, 2024
Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK c1fd5a622317b2d8bce4f2984970348e723419b1 for merging via merge commit

@kwvg kwvg requested review from UdjinM6 and knst March 6, 2024 18:19
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few small suggestions

knst
knst previously approved these changes Mar 6, 2024
Copy link
Collaborator

@knst knst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but check rpc dashification s/satoshi/duffs

@kwvg kwvg dismissed stale reviews from knst and PastaPastaPasta via dc72e53 March 6, 2024 19:18
@kwvg kwvg requested review from PastaPastaPasta, UdjinM6 and knst March 6, 2024 19:20
knst
knst previously approved these changes Mar 6, 2024
Copy link
Collaborator

@knst knst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noticed another one

@github-actions
Copy link

github-actions bot commented Mar 6, 2024

This pull request has conflicts, please rebase.

Copy link
Collaborator

@knst knst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I just found one releavant backport:
    e36aa35 Merge bitcoin#19969: Send RPC bug fix and touch-ups

Consider including it to this PR

  1. I just discovered that we have CURRENCY_ATOM defined since bitcoin#11413 and bitcoin uses it in the later commits for rpc wallet.
+const std::string CURRENCY_ATOM = "duff"; // One indivisible minimum value unit

considerusing CURRENCY_ATOM instead duffs directly

kwvg and others added 2 commits March 7, 2024 09:29
@kwvg kwvg changed the title backport: merge bitcoin#16337, #16378, #20179 (send rpc) backport: merge bitcoin#16337, #16378, #20179, #19969 (send rpc) Mar 7, 2024
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, utACK 76a49ad

@kwvg kwvg requested a review from knst March 7, 2024 19:39
Copy link
Collaborator

@knst knst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 76a49ad

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 76a49ad

@PastaPastaPasta PastaPastaPasta merged commit b2258ab into dashpay:develop Mar 8, 2024
@thephez thephez added the RPC Some notable changes to RPC params/behaviour/descriptions label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RPC Some notable changes to RPC params/behaviour/descriptions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants