Disable free transactions in TestPackageSelection

Dash allows free transactions by default, mixing up the expected ordering
of transactions in TestPackageSelection
This commit is contained in:
Alexander Block 2017-12-27 21:53:06 +01:00
parent f8a7a2c88d
commit f61a754020

View File

@ -78,6 +78,9 @@ bool TestSequenceLocks(const CTransaction &tx, int flags)
// Note that this test assumes blockprioritysize is 0.
void TestPackageSelection(const CChainParams& chainparams, CScript scriptPubKey, std::vector<CTransaction *>& txFirst)
{
// Disable free transactions, otherwise TX selection is non-deterministic
SoftSetArg("-blockprioritysize", "0");
// Test the ancestor feerate transaction selection.
TestMemPoolEntryHelper entry;