node: Use mempool from node context instead of global

This commit is contained in:
MarcoFalke
2019-11-22 16:24:38 -05:00
parent facbaf092f
commit fa660d65d7
8 changed files with 16 additions and 14 deletions

View File

@@ -9,14 +9,16 @@
class COutPoint;
class Coin;
struct NodeContext;
/**
* Look up unspent output information. Returns coins in the mempool and in the
* current chain UTXO set. Iterates through all the keys in the map and
* populates the values.
*
* @param[in] node The node context to use for lookup
* @param[in,out] coins map to fill
*/
void FindCoins(std::map<COutPoint, Coin>& coins);
void FindCoins(const NodeContext& node, std::map<COutPoint, Coin>& coins);
#endif // BITCOIN_NODE_COIN_H