|
|
@ -1007,7 +1007,7 @@ void komodo_notarized_update(int32_t nHeight,int32_t notarized_height,uint256 no |
|
|
|
char fname[512];int32_t latestht = 0; |
|
|
|
//decode_hex(NOTARY_PUBKEY33,33,(char *)NOTARY_PUBKEY.c_str());
|
|
|
|
pthread_mutex_init(&komodo_mutex,NULL); |
|
|
|
std::string suffix = Params().NetworkIDString() == "mainnet" ? "" : "_" + Params.NetworkIDString(); |
|
|
|
std::string suffix = Params().NetworkIDString() == "main" ? "" : "_" + Params().NetworkIDString(); |
|
|
|
std::string sep; |
|
|
|
#ifdef _WIN32 |
|
|
|
sep = "\\"; |
|
|
@ -1048,7 +1048,7 @@ void komodo_notarized_update(int32_t nHeight,int32_t notarized_height,uint256 no |
|
|
|
} |
|
|
|
if ( notarized_height == 0 ) |
|
|
|
{ |
|
|
|
LogPrintf("dpow: notarized_height=0, aborting\n"); |
|
|
|
//LogPrintf("dpow: notarized_height=0, aborting\n");
|
|
|
|
return; |
|
|
|
} |
|
|
|
if ( notarized_height >= nHeight ) |
|
|
@ -1071,7 +1071,7 @@ void komodo_notarized_update(int32_t nHeight,int32_t notarized_height,uint256 no |
|
|
|
NOTARIZED_HEIGHT = np->notarized_height = notarized_height; |
|
|
|
NOTARIZED_HASH = np->notarized_hash = notarized_hash; |
|
|
|
NOTARIZED_DESTTXID = np->notarized_desttxid = notarized_desttxid; |
|
|
|
LogPrintf("dpow: NOTARIZED (HEIGHT,HASH,DESTTXID) = (%d, %s, %s)\n", NOTARIZED_HEIGHT, NOTARIZED_HASH.GetHex().c_str(), NOTARIZED_DESTTXID.GetHex().c_str()); |
|
|
|
LogPrintf("dpow: komodo_notarized_update NOTARIZED (HEIGHT,HASH,DESTTXID) = (%d, %s, %s)\n", NOTARIZED_HEIGHT, NOTARIZED_HASH.GetHex().c_str(), NOTARIZED_DESTTXID.GetHex().c_str()); |
|
|
|
if ( MoM != zero && MoMdepth > 0 ) |
|
|
|
{ |
|
|
|
NOTARIZED_MOM = np->MoM = MoM; |
|
|
|