Skip to content

Conversation

@S3RK
Copy link
Contributor

@S3RK S3RK commented Aug 19, 2021

It seems there is a bug in the test in #22686, the code behaviour itself looks correct.

Instead of verifying the scenario from #22670 with both upper_bound and lower_bound for the transaction amount, the tests verified lower_bound two times. This fix is to properly use function parameter instead of a variable from the scope. The test still passes with both values, so no code changes are required.

@S3RK
Copy link
Contributor Author

S3RK commented Aug 19, 2021

cc @achow101

@fanquake fanquake added the Tests label Aug 19, 2021
@fanquake fanquake requested a review from instagibbs August 19, 2021 09:49
@laanwj
Copy link
Member

laanwj commented Aug 19, 2021

Please elaborate a bit, what kind of bug? How does it manifest? Does the test fail?

@achow101
Copy link
Member

ACK 8dcbbbe

@maflcko maflcko changed the title test: fix bug in 22686 test: Use proper target in do_fund_send Aug 19, 2021
@maflcko maflcko merged commit 92f3a4b into bitcoin:master Aug 19, 2021
hebasto pushed a commit to hebasto/bitcoin that referenced this pull request Aug 20, 2021
Github-Pull: bitcoin#22742
Rebased-From: 8dcbbbe
@hebasto hebasto mentioned this pull request Aug 20, 2021
@hebasto
Copy link
Member

hebasto commented Aug 20, 2021

Backported in #22629.

hebasto pushed a commit to hebasto/bitcoin that referenced this pull request Aug 20, 2021
Github-Pull: bitcoin#22742
Rebased-From: 8dcbbbe
laanwj added a commit that referenced this pull request Aug 26, 2021
32e1424 Fix build with Boost 1.77.0 (Rafael Sadowski)
cb34a0a qt: Handle new added plurals in bitcoin_en.ts (Hennadii Stepanov)
068985c doc: Mention the flat directory structure for uploads (Andrew Chow)
27d43e5 guix: Don't include directory name in SHA256SUMS (Andrew Chow)
88fb7e3 test: fix bug in 22686 (S3RK)
63fec7e clientversion: No suffix #if CLIENT_VERSION_IS_RELEASE (Carl Dong)
dfaffbe test: Test for ApproximateBestSubset edge case with too little fees (Andrew Chow)
e86b023 wallet: Assert that enough was selected to cover the fees (Andrew Chow)
ffc81e2 wallet: Use GetSelectionAmount for target value calculations (Andrew Chow)
ce77b45 release: Release with separate SHA256SUMS and sig files (Carl Dong)
cb491bd guix-verify: Non-zero exit code when anything fails (Carl Dong)
6a611d2 gui: ensure external signer option remains disabled without signers (Andrew Chow)
e9b4487 qt: Fix regression in "Encrypt Wallet" menu item (Hennadii Stepanov)
57fce06 consensus/params: simplify ValidDeployment check to avoid gcc warning (Anthony Towns)
e9d30fb ci: Run fuzzer task for the master branch only (Hennadii Stepanov)

Pull request description:

  Backported:

  1) #22730
  1) bitcoin-core/gui#393
  1) #22597
  1) bitcoin-core/gui#396
  1) #22643
  1) #22642
  1) #22685
  1) #22686
  1) #22654
  1) #22742
  1) bitcoin-core/gui#406
  1) #22713

ACKs for top commit:
  laanwj:
    Code list-of-backported-PRs review ACK 32e1424

Tree-SHA512: f5e2dd1be6cdcd39368eeb5d297b3ff4418d0bf2e70c90e59ab4ba1dbf16f773045d877b4997511de58c3aca75a978dcf043e338bad23951557e2a27ccc845f6
fujicoin pushed a commit to fujicoin/fujicoin-22.0 that referenced this pull request Aug 27, 2021
Github-Pull: bitcoin/bitcoin#22742
Rebased-From: 8dcbbbea6486e9ab7d5e7397b82585141f9910bf
gwillen pushed a commit to gwillen/elements that referenced this pull request Jul 27, 2022
gwillen pushed a commit to gwillen/elements that referenced this pull request Aug 1, 2022
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants