X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fqt%2Fwalletmodel.cpp;h=54f806aa9d0ffb60a0214dd4369f7f4b28d2c1ac;hb=77a43545b4491b9703d803765da9059d2bdd5aaa;hp=a8171df2e975e67c6f3326b0afdb9963b79ce10f;hpb=a51b421f76da8bfb88dedd159789eec0063d3087;p=novacoin.git diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index a8171df..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); } @@ -500,4 +500,9 @@ void WalletModel::listLockedCoins(std::vector& vOutpts) void WalletModel::clearOrphans() { wallet->ClearOrphans(); +} + +CWallet* WalletModel::getWallet() +{ + return wallet; } \ No newline at end of file