Me love you longest chain

This commit is contained in:
Duke Leto
2020-12-06 15:43:56 -05:00
parent 62ddb079bc
commit 1f636f4d39
5 changed files with 13 additions and 13 deletions

View File

@@ -177,7 +177,7 @@ UniValue getpeerinfo(const UniValue& params, bool fHelp, const CPubKey& mypk)
return ret;
}
int32_t KOMODO_LONGESTCHAIN;
int32_t HUSH_LONGESTCHAIN;
int32_t komodo_longestchain()
{
static int32_t depth;
@@ -216,14 +216,14 @@ int32_t komodo_longestchain()
depth--;
if ( num > (n >> 1) )
{
if ( 0 && height != KOMODO_LONGESTCHAIN )
fprintf(stderr,"set %s KOMODO_LONGESTCHAIN <- %d\n",SMART_CHAIN_SYMBOL,height);
KOMODO_LONGESTCHAIN = height;
if ( 0 && height != HUSH_LONGESTCHAIN )
fprintf(stderr,"set %s HUSH_LONGESTCHAIN <- %d\n",SMART_CHAIN_SYMBOL,height);
HUSH_LONGESTCHAIN = height;
return(height);
}
KOMODO_LONGESTCHAIN = 0;
HUSH_LONGESTCHAIN = 0;
}
return(KOMODO_LONGESTCHAIN);
return(HUSH_LONGESTCHAIN);
}
UniValue addnode(const UniValue& params, bool fHelp, const CPubKey& mypk)