clean unused
This commit is contained in:
parent
dd61090051
commit
f57a688fea
@ -373,32 +373,6 @@ vector<COutput> CActiveMasternode::SelectCoinsMasternode()
|
||||
return filteredCoins;
|
||||
}
|
||||
|
||||
|
||||
/* select coins with specified transaction hash and output index */
|
||||
/*
|
||||
bool CActiveMasternode::SelectCoinsMasternode(CTxIn& vin, int64& nValueIn, CScript& pubScript, std::string strTxHash, std::string strOutputIndex)
|
||||
{
|
||||
CWalletTx ctx;
|
||||
|
||||
// Convert configuration strings
|
||||
uint256 txHash;
|
||||
int outputIndex;
|
||||
txHash.SetHex(strTxHash);
|
||||
std::istringstream(strOutputIndex) >> outputIndex;
|
||||
|
||||
if(pwalletMain->GetTransaction(txHash, ctx)) {
|
||||
if(ctx.vout[outputIndex].nValue == 1000*COIN) { //exactly
|
||||
vin = CTxIn(ctx.GetHash(), outputIndex);
|
||||
pubScript = ctx.vout[outputIndex].scriptPubKey; // the inputs PubKey
|
||||
nValueIn = ctx.vout[outputIndex].nValue;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
// when starting a masternode, this can enable to run as a hot wallet with no funds
|
||||
bool CActiveMasternode::EnableHotColdMasterNode(CTxIn& newVin, CService& newService)
|
||||
{
|
||||
|
@ -52,8 +52,6 @@ public:
|
||||
vector<COutput> SelectCoinsMasternode();
|
||||
bool GetVinFromOutput(COutput out, CTxIn& vin, CPubKey& pubkey, CKey& secretKey);
|
||||
|
||||
//bool SelectCoinsMasternode(CTxIn& vin, int64& nValueIn, CScript& pubScript, std::string strTxHash, std::string strOutputIndex);
|
||||
|
||||
// enable hot wallet mode (run a masternode with no funds)
|
||||
bool EnableHotColdMasterNode(CTxIn& vin, CService& addr);
|
||||
};
|
||||
|
@ -136,7 +136,6 @@ public:
|
||||
bool SelectCoinsDark(int64_t nValueMin, int64_t nValueMax, std::vector<CTxIn>& setCoinsRet, int64_t& nValueRet, int nDarksendRoundsMin, int nDarksendRoundsMax) const;
|
||||
bool SelectCoinsByDenominations(int nDenom, int64_t nValueMin, int64_t nValueMax, std::vector<CTxIn>& setCoinsRet, vector<COutput>& vCoins, int64_t& nValueRet, int nDarksendRoundsMin, int nDarksendRoundsMax);
|
||||
bool SelectCoinsDarkDenominated(int64_t nTargetValue, std::vector<CTxIn>& setCoinsRet, int64_t& nValueRet) const;
|
||||
bool SelectCoinsMasternode(CTxIn& vin, int64_t& nValueRet, CScript& pubScript) const;
|
||||
bool HasCollateralInputs() const;
|
||||
bool IsCollateralAmount(int64_t nInputAmount) const;
|
||||
int CountInputsWithAmount(int64_t nInputAmount);
|
||||
|
Loading…
Reference in New Issue
Block a user