Skip to content

Commit a443d7a

Browse files
committed
moveonly: CoinElegibilityFilter into coinselection.h
1 parent 173e18a commit a443d7a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/wallet/coinselection.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ class CInputCoin {
4747
}
4848
};
4949

50+
struct CoinEligibilityFilter
51+
{
52+
const int conf_mine;
53+
const int conf_theirs;
54+
const uint64_t max_ancestors;
55+
const uint64_t max_descendants;
56+
57+
CoinEligibilityFilter(int conf_mine, int conf_theirs, uint64_t max_ancestors) : conf_mine(conf_mine), conf_theirs(conf_theirs), max_ancestors(max_ancestors), max_descendants(max_ancestors) {}
58+
CoinEligibilityFilter(int conf_mine, int conf_theirs, uint64_t max_ancestors, uint64_t max_descendants) : conf_mine(conf_mine), conf_theirs(conf_theirs), max_ancestors(max_ancestors), max_descendants(max_descendants) {}
59+
};
60+
5061
bool SelectCoinsBnB(std::vector<CInputCoin>& utxo_pool, const CAmount& target_value, const CAmount& cost_of_change, std::set<CInputCoin>& out_set, CAmount& value_ret, CAmount not_input_fees);
5162

5263
// Original coin selection algorithm as a fallback

src/wallet/wallet.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -652,17 +652,6 @@ struct CoinSelectionParams
652652
CoinSelectionParams() {}
653653
};
654654

655-
struct CoinEligibilityFilter
656-
{
657-
const int conf_mine;
658-
const int conf_theirs;
659-
const uint64_t max_ancestors;
660-
const uint64_t max_descendants;
661-
662-
CoinEligibilityFilter(int conf_mine, int conf_theirs, uint64_t max_ancestors) : conf_mine(conf_mine), conf_theirs(conf_theirs), max_ancestors(max_ancestors), max_descendants(max_ancestors) {}
663-
CoinEligibilityFilter(int conf_mine, int conf_theirs, uint64_t max_ancestors, uint64_t max_descendants) : conf_mine(conf_mine), conf_theirs(conf_theirs), max_ancestors(max_ancestors), max_descendants(max_descendants) {}
664-
};
665-
666655
class WalletRescanReserver; //forward declarations for ScanForWalletTransactions/RescanFromTime
667656
/**
668657
* A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,

0 commit comments

Comments
 (0)