try
This commit is contained in:
@@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user