Merge pull request #2487 from chromatic/fix-compiler-warnings
Fix compiler warnings
This commit is contained in:
commit
5f41105096
|
@ -23,6 +23,7 @@ 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.
|
||||
|
|
|
@ -151,13 +151,14 @@ UniValue generateBlocks(boost::shared_ptr<CReserveScript> coinbaseScript, int nG
|
|||
}
|
||||
}
|
||||
std::shared_ptr<const CBlock> shared_pblock = std::make_shared<const CBlock>(*pblock);
|
||||
if (!ProcessNewBlock(Params(), shared_pblock, true, NULL))
|
||||
if (!ProcessNewBlock(Params(), shared_pblock, true, NULL)) {
|
||||
if (nMineAuxPow) {
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
throw JSONRPCError(RPC_INTERNAL_ERROR, "ProcessNewBlock, block not accepted");
|
||||
else {
|
||||
throw JSONRPCError(RPC_INTERNAL_ERROR, "ProcessNewBlock, block not accepted");
|
||||
}
|
||||
}
|
||||
++nHeight;
|
||||
blockHashes.push_back(pblock->GetHash().GetHex());
|
||||
|
||||
|
|
|
@ -3900,11 +3900,11 @@ bool CWallet::ParameterInteraction()
|
|||
GetArg("-paytxfee", ""), ::minRelayTxFeeRate.ToString()));
|
||||
}
|
||||
|
||||
// if -mintxfee is not set, then a lower payTxFee overrides minTxFee
|
||||
if (!IsArgSet("-mintxfee") && payTxFee < CWallet::minTxFee)
|
||||
// if -mintxfee is not set, then a lower payTxFee overrides minTxFee
|
||||
if (!IsArgSet("-mintxfee") && payTxFee < CWallet::minTxFee)
|
||||
{
|
||||
LogPrintf("%s: parameter interaction: -paytxfee=%s -> setting -mintxfee=%s\n", __func__, GetArg("-paytxfee",""), GetArg("-paytxfee",""));
|
||||
CWallet:minTxFee = CFeeRate(nFeePerK,1000);
|
||||
LogPrintf("%s: parameter interaction: -paytxfee=%s -> setting -mintxfee=%s\n", __func__, GetArg("-paytxfee",""), GetArg("-paytxfee",""));
|
||||
CWallet::minTxFee = CFeeRate(nFeePerK,1000);
|
||||
}
|
||||
}
|
||||
if (IsArgSet("-maxtxfee"))
|
||||
|
|
Loading…
Reference in a new issue