X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fqt%2Fwalletmodel.cpp;h=54f806aa9d0ffb60a0214dd4369f7f4b28d2c1ac;hb=77a43545b4491b9703d803765da9059d2bdd5aaa;hp=b8e5236357969887bb34fdbb3abc196a71603e5c;hpb=91c0b9419a644cb6f72d05711fcfec5aeb348f3f;p=novacoin.git diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index b8e5236..54f806a 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -168,7 +168,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(const QList vCoins; wallet->AvailableCoins(vCoins, true, coinControl); @@ -190,7 +190,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(const QListcs_wallet); // Sendmany - std::vector > vecSend; + std::vector > vecSend; foreach(const SendCoinsRecipient &rcp, recipients) { CScript scriptPubKey; @@ -200,7 +200,7 @@ WalletModel::SendCoinsReturn WalletModel::sendCoins(const QListCreateTransaction(vecSend, wtx, keyChange, nFeeRequired, coinControl); if(!fCreated) @@ -319,12 +319,12 @@ bool WalletModel::changePassphrase(const SecureString &oldPass, const SecureStri return retval; } -void WalletModel::getStakeWeight(uint64& nMinWeight, uint64& nMaxWeight, uint64& nWeight) +void WalletModel::getStakeStats(float &nKernelsRate, float &nCoinDaysRate) { - wallet->GetStakeWeight(*wallet, nMinWeight, nMaxWeight, nWeight); + wallet->GetStakeStats(nKernelsRate, nCoinDaysRate); } -void WalletModel::getStakeWeightFromValue(const int64& nTime, const int64& nValue, uint64& nWeight) +void WalletModel::getStakeWeightFromValue(const int64_t& nTime, const int64_t& nValue, uint64_t& nWeight) { wallet->GetStakeWeightFromValue(nTime, nValue, nWeight); } @@ -496,3 +496,13 @@ void WalletModel::listLockedCoins(std::vector& vOutpts) { return; } + +void WalletModel::clearOrphans() +{ + wallet->ClearOrphans(); +} + +CWallet* WalletModel::getWallet() +{ + return wallet; +} \ No newline at end of file