mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Fix tests after backport of #22949
This commit is contained in:
parent
2c72896bb3
commit
e528b34ed8
2 changed files with 2 additions and 2 deletions
|
|
@ -195,7 +195,7 @@ void MinerTestingSetup::TestPackageSelection(const CChainParams& chainparams, co
|
|||
m_node.mempool->addUnchecked(entry.Fee(10000).FromTx(tx));
|
||||
pblocktemplate = AssemblerForTest(chainparams).CreateNewBlock(scriptPubKey);
|
||||
BOOST_REQUIRE_EQUAL(pblocktemplate->block.vtx.size(), 9U);
|
||||
BOOST_CHECK(pblocktemplate->block.vtx[8]->GetHash() == hashLowFeeTx2);
|
||||
BOOST_CHECK(pblocktemplate->block.vtx[6]->GetHash() == hashLowFeeTx2);
|
||||
}
|
||||
|
||||
// NOTE: These tests rely on CreateNewBlock doing its own self-validation!
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ class KeyPoolTest(BitcoinTestFramework):
|
|||
# create a transaction without change at the maximum fee rate, such that the output is still spendable:
|
||||
res = w2.walletcreatefundedpsbt(inputs=[], outputs=[{destination: 0.00025000}], options={"subtractFeeFromOutputs": [0], "feeRate": 0.0008823})
|
||||
assert_equal("psbt" in res, True)
|
||||
assert_equal(res["fee"], Decimal("0.00016853"))
|
||||
assert_equal(res["fee"], Decimal("0.00016852"))
|
||||
|
||||
# creating a 10,000 sat transaction with a manual change address should be possible
|
||||
res = w2.walletcreatefundedpsbt(inputs=[], outputs=[{destination: 0.00025000}], options={"subtractFeeFromOutputs": [0], "feeRate": 0.00010, "changeAddress": addr.pop()})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue