mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-05 18:52:29 +02:00
Merge #9262: Prefer coins that have fewer ancestors, sanity check txn before ATMP
cee1612reduce number of lookups in TransactionWithinChainLimit (Gregory Sanders)af9bedbTest for fix of txn chaining in wallet (Gregory Sanders)5882c09CreateTransaction: Don't return success with too-many-ancestor txn (Gregory Sanders)0b2294aSelectCoinsMinConf: Prefer coins with fewer ancestors (Gregory Sanders)
This commit is contained in:
@@ -52,7 +52,7 @@ static void CoinSelection(benchmark::State& state)
|
||||
|
||||
set<pair<const CWalletTx*, unsigned int> > setCoinsRet;
|
||||
CAmount nValueRet;
|
||||
bool success = wallet.SelectCoinsMinConf(1003 * COIN, 1, 6, vCoins, setCoinsRet, nValueRet);
|
||||
bool success = wallet.SelectCoinsMinConf(1003 * COIN, 1, 6, 0, vCoins, setCoinsRet, nValueRet);
|
||||
assert(success);
|
||||
assert(nValueRet == 1003 * COIN);
|
||||
assert(setCoinsRet.size() == 2);
|
||||
|
||||
Reference in New Issue
Block a user