Skip to content

Conversation

@achow101
Copy link
Member

@achow101 achow101 commented Jul 14, 2020

Refactors the UTXO processing of decodepsbt to extract the relevant CTxOut and handle the input amounts from that. This avoids double counting the input value.

Fixes #19516

@sipa
Copy link
Member

sipa commented Jul 14, 2020

utACK 7512278

Marking this for 0.20.1 as well, as #19215 is kind of a regression without it.

@sipa sipa added this to the 0.20.1 milestone Jul 14, 2020
Copy link
Contributor

@ryanofsky ryanofsky left a comment

Choose a reason for hiding this comment

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

Code review ACK 7512278

@ryanofsky
Copy link
Contributor

Would be nice to have a test for this, too.

@fanquake
Copy link
Member

Would be nice to have a test for this, too.

Opened a "Good first issue" for this in #19523.

@fanquake
Copy link
Member

Being backported in #19524.

laanwj added a commit that referenced this pull request Jul 16, 2020
… once per UTXO in decodepsbt

bad9cf8 Increment input value sum only once per UTXO in decodepsbt (Andrew Chow)

Pull request description:

  Github-Pull: #19517
  Rebased-From: 7512278

ACKs for top commit:
  jnewbery:
    utACK bad9cf8
  laanwj:
    ACK bad9cf8

Tree-SHA512: 543bbe58f2dafc772289708007d72fa61592270f3de083afffb9a56274b03f2ffe8d8d509a93790ceea3a708e1c02b1ad941e23281b3db1f48766c01a930dbd6
backpacker69 referenced this pull request in peercoin/peercoin Sep 8, 2020
Bushstar pushed a commit to Bushstar/omnicore that referenced this pull request Oct 21, 2020
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
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.

decodepsbt fee overstated since #19215

5 participants