File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -446,6 +446,13 @@ const CWalletTx* WalletModel::getTx(uint256 id){
446446 return wallet->GetWalletTx (id);
447447}
448448
449+ bool WalletModel::isCoinStake (QString id){
450+ uint256 hashTx;
451+ hashTx.SetHex (id.toStdString ());
452+ const CWalletTx* tx = getTx (hashTx);
453+ return tx->IsCoinStake ();
454+ }
455+
449456bool WalletModel::mintCoins (CAmount value, CCoinControl* coinControl ,std::string &strError){
450457 CWalletTx wtx;
451458 vector<CDeterministicMint> vMints;
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ class WalletModel : public QObject
165165 };
166166
167167 const CWalletTx* getTx (uint256 id);
168+ bool isCoinStake (QString id);
168169
169170 // prepare transaction for getting txfee before sending coins
170171 SendCoinsReturn prepareTransaction (WalletModelTransaction& transaction, const CCoinControl* coinControl = NULL );
You can’t perform that action at this time.
0 commit comments