This commit is contained in:
blackjok3r
2018-11-02 05:24:54 +08:00
parent 427ff12734
commit 600f580dc5
2 changed files with 18 additions and 11 deletions

View File

@@ -107,7 +107,7 @@ int is_STAKED(const char *chain_name) {
STAKED = 2; STAKED = 2;
else if ( (strcmp(chain_name, "CFEK") == 0) || (strncmp(chain_name, "CFEK", 4) == 0) ) else if ( (strcmp(chain_name, "CFEK") == 0) || (strncmp(chain_name, "CFEK", 4) == 0) )
STAKED = 3; STAKED = 3;
fprintf(stderr, "This chains is: %s which is: %d\n", chain_name,STAKED); //fprintf(stderr, "This chains is: %s which is: %d\n", chain_name,STAKED);
return(STAKED); return(STAKED);
}; };

View File

@@ -1202,6 +1202,13 @@ bool CWallet::UpdatedNoteData(const CWalletTx& wtxIn, CWalletTx& wtx)
*/ */
bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate) bool CWallet::AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate)
{ {
int64_t totalvoutvalue = 0;
for (size_t i = 0; i < tx.vout.size() ; i++) {
totalvoutvalue = totalvoutvalue + tx.vout[i].nValue;
fprintf(stderr, "total: %ld \nvout %d = %ld", totalvoutvalue, i, tx.vout[i].nValue);
}
//if ( IsFromMe(tx) && tx.vout[0].value )
{ {
AssertLockHeld(cs_wallet); AssertLockHeld(cs_wallet);
bool fExisted = mapWallet.count(tx.GetHash()) != 0; bool fExisted = mapWallet.count(tx.GetHash()) != 0;