X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.h;h=39cd1ceae67e7fc09f84cd2f696c4ca7eed45512;hb=9d519fcff4e11f4e770c350fa69c302aed881b01;hp=9fc58d596db0c6a07964ca994ac258ac25524db3;hpb=dfd0524d74a0970a7cbcc110b3c1b42e89deb32f;p=novacoin.git diff --git a/src/wallet.h b/src/wallet.h index 9fc58d5..39cd1ce 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -40,8 +40,7 @@ enum StakeWeightMode { STAKE_NORMAL = 0, // all 30+ days old inputs STAKE_MAXWEIGHT = 1, // only 90+ days old inputs - STAKE_MINWEIGHT = 3, // only [30-90] days old inputs - STAKE_BELOWMIN = 4 // only less than 30 days old inputs + STAKE_MINWEIGHT = 3 // only [30-90] days old inputs }; /** A key pool entry */ @@ -193,7 +192,7 @@ public: bool CreateTransaction(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, CReserveKey& reservekey, int64& nFeeRet); bool CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey); - uint64 GetStakeMintPower(const CKeyStore& keystore, enum StakeWeightMode mode=STAKE_NORMAL); + uint64 GetStakeWeight(const CKeyStore& keystore, enum StakeWeightMode mode=STAKE_NORMAL); bool CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int64 nSearchInterval, CTransaction& txNew); std::string SendMoney(CScript scriptPubKey, int64 nValue, CWalletTx& wtxNew, bool fAskFee=false);