TransactionBuilder: Make fee configurable

This commit is contained in:
Jack Grigg
2018-07-30 12:52:48 +01:00
parent 45c0d1ec84
commit a8dd4b0cf1
3 changed files with 69 additions and 3 deletions

View File

@@ -59,6 +59,7 @@ private:
int nHeight;
const CKeyStore* keystore;
CMutableTransaction mtx;
CAmount fee = 10000;
std::vector<SpendDescriptionInfo> spends;
std::vector<OutputDescriptionInfo> outputs;
@@ -70,6 +71,8 @@ private:
public:
TransactionBuilder(const Consensus::Params& consensusParams, int nHeight, CKeyStore* keyStore = nullptr);
void SetFee(CAmount fee);
// Returns false if the anchor does not match the anchor used by
// previously-added Sapling spends.
bool AddSaplingSpend(