aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-05-20 19:52:18 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-08-27 12:46:19 -0400
commit86beee05795216738f51fa744539336503c26fd9 (patch)
tree783f0c46d23ae8d767028c8e9c875c2e5aa4b2a2 /test
parentb3df0caf7c291a316298e54e73426c765e61c129 (diff)
downloadbitcoin-86beee05795216738f51fa744539336503c26fd9.tar.xz
Use waste metric for deciding which selection to use
Instead of always choosing BnB if it finds a solution, always do both BnB and KnapsackSolver and choose the one which has the least waste.
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/rpc_fundrawtransaction.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/rpc_fundrawtransaction.py b/test/functional/rpc_fundrawtransaction.py
index 2369ad25d5..0ce58efbcf 100755
--- a/test/functional/rpc_fundrawtransaction.py
+++ b/test/functional/rpc_fundrawtransaction.py
@@ -543,7 +543,7 @@ class RawTransactionsTest(BitcoinTestFramework):
self.nodes[1].getnewaddress()
self.nodes[1].getrawchangeaddress()
inputs = []
- outputs = {self.nodes[0].getnewaddress():1.09999500}
+ outputs = {self.nodes[0].getnewaddress():1.19999500}
rawtx = self.nodes[1].createrawtransaction(inputs, outputs)
# fund a transaction that does not require a new key for the change output
self.nodes[1].fundrawtransaction(rawtx)