mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-05 10:17:30 -05:00
0185939be6
Create a new file for coin selection logic and implement the BnB algorithm in it.
15 lines
586 B
C++
15 lines
586 B
C++
// Copyright (c) 2017 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_COINSELECTION_H
|
|
#define BITCOIN_COINSELECTION_H
|
|
|
|
#include <amount.h>
|
|
#include <primitives/transaction.h>
|
|
#include <random.h>
|
|
#include <wallet/wallet.h>
|
|
|
|
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);
|
|
|
|
#endif // BITCOIN_COINSELECTION_H
|