This commit is contained in:
blackjok3r
2018-11-05 21:32:37 +08:00
parent f4f9c03cb4
commit 73a83354dc
2 changed files with 2 additions and 8 deletions

View File

@@ -831,8 +831,8 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
txn_count = block.vtx.size(); txn_count = block.vtx.size();
for (i=0; i<txn_count; i++) for (i=0; i<txn_count; i++)
{ {
if ((is_STAKED(ASSETCHAINS_SYMBOL) != 0) && (STAKED_era(pindex->GetBlockTime()) == 0)) { if ((is_STAKED(ASSETCHAINS_SYMBOL) != 0) && (STAKED_era((uint32_t)pindex->nTime) == 0)) {
printf("ERA 0 SKIP getblocktime: %ld pindex->nTime : %d for %s\n",pindex->GetBlockTime(),(uint32_t)pindex->nTime,ASSETCHAINS_SYMBOL); //printf("ERA 0 SKIP getblocktime: %ld pindex->nTime : %d for %s\n",pindex->GetBlockTime(),(uint32_t)pindex->nTime,ASSETCHAINS_SYMBOL);
continue; continue;
} }
txhash = block.vtx[i].GetHash(); txhash = block.vtx[i].GetHash();

View File

@@ -227,9 +227,6 @@ int8_t numStakedNotaries(uint8_t pubkeys[64][33],int8_t era) {
#endif #endif
} }
didstaked1 = 1; didstaked1 = 1;
didstaked2 = 0;
didstaked3 = 0;
didstaked4 = 0;
printf("%s is a STAKED chain in era 1 \n",ChainName); printf("%s is a STAKED chain in era 1 \n",ChainName);
} }
@@ -249,8 +246,6 @@ int8_t numStakedNotaries(uint8_t pubkeys[64][33],int8_t era) {
#endif #endif
} }
didstaked2 = 1; didstaked2 = 1;
didstaked3 = 0;
didstaked4 = 0;
printf("%s is a STAKED chain in era 2 \n",ChainName); printf("%s is a STAKED chain in era 2 \n",ChainName);
} }
memcpy(pubkeys,staked_pubkeys2,num_notaries_STAKED2 * 33); memcpy(pubkeys,staked_pubkeys2,num_notaries_STAKED2 * 33);
@@ -269,7 +264,6 @@ int8_t numStakedNotaries(uint8_t pubkeys[64][33],int8_t era) {
#endif #endif
} }
didstaked3 = 1; didstaked3 = 1;
didstaked4 = 0;
printf("%s is a STAKED chain in era 3 \n",ChainName); printf("%s is a STAKED chain in era 3 \n",ChainName);
} }
memcpy(pubkeys,staked_pubkeys3,num_notaries_STAKED3 * 33); memcpy(pubkeys,staked_pubkeys3,num_notaries_STAKED3 * 33);