Skip to content

Commit

Permalink
cleanup: remove unused GetDogecoinWalletFee(Rate)
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklodder committed Oct 17, 2021
1 parent 38aba25 commit 35754ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
15 changes: 0 additions & 15 deletions src/dogecoin-fees.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,6 @@ const std::string GetDogecoinPriorityLabel(int priority)
return _("Default");
}

//mlumin 5/2021: walletfees, all attached to GetDogecoinWalletFeeRate which is just the newly exposed ::minWalletTxFee
CAmount GetDogecoinWalletFee(size_t nBytes_)
{
//mlumin: super simple fee calc for dogecoin
CAmount nFee=GetDogecoinWalletFeeRate().GetFee(nBytes_);
return nFee;
}

//mlumin 5/2021: Establish a wallet rate of n koinu per kb.
//mlumin: this is somewhat redundant to the globally exposed ::minWalletTxFee, but honestly I'd like to have both the rate and amount (with size) here
CFeeRate GetDogecoinWalletFeeRate()
{
//mlumin 5/2021: currently 1x COIN or 1 dogecoin or 100,000,000 koinu
return CWallet::minTxFee;
}
#endif

CAmount GetDogecoinMinRelayFee(const CTransaction& tx, unsigned int nBytes, bool fAllowFree)
Expand Down
2 changes: 0 additions & 2 deletions src/dogecoin-fees.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ enum FeeRatePreset
/** Estimate fee rate needed to get into the next nBlocks */
CFeeRate GetDogecoinFeeRate(int priority);
const std::string GetDogecoinPriorityLabel(int priority);
CFeeRate GetDogecoinWalletFeeRate();
CAmount GetDogecoinMinWalletFee(unsigned int nBytes_);
#endif // ENABLE_WALLET
CAmount GetDogecoinMinRelayFee(const CTransaction& tx, unsigned int nBytes, bool fAllowFree);
CAmount GetDogecoinDustFee(const std::vector<CTxOut> &vout, const CAmount dustLimit);
Expand Down

0 comments on commit 35754ca

Please sign in to comment.