This commit is contained in:
jl777
2016-10-03 10:27:44 -03:00
parent a2a3945ef5
commit 76c0be99bc
2 changed files with 5 additions and 5 deletions

View File

@@ -22,15 +22,15 @@
int32_t IS_KOMODO_NOTARY,USE_EXTERNAL_PUBKEY;
std::string NOTARY_PUBKEY;
int32_t komodo_is_notaryblock(uint8_t *pblock,uint8_t *coinbase,uint8_t *minerout)
int32_t komodo_is_notaryblock(uint8_t *pblock)
{
int32_t i;
/*int32_t i;
for (i=0; i<5; i++)
printf("%02x",coinbase[i]);
printf(" <- coinbase\n");
for (i=0; i<35; i++)
printf("%02x",minerout[i]);
printf(" <- minerout\n");
printf(" <- minerout\n");*/
return(0);
}

View File

@@ -16,14 +16,14 @@
#include "sodium.h"
int32_t komodo_is_notaryblock(uint8_t *pblock,uint8_t *coinbase,uint8_t *minerout);
int32_t komodo_is_notaryblock(uint8_t *pblock);
unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params)
{
unsigned int nProofOfWorkLimit = UintToArith256(params.powLimit).GetCompact();
// Genesis block
if (pindexLast == NULL || komodo_is_notaryblock((uint8_t *)pblock,(uint8_t *)pblock->vin[0].scriptSig,(uint8_t *)pblock->vout[0].scriptPubKey) != 0 )
if (pindexLast == NULL || komodo_is_notaryblock((uint8_t *)pblock) != 0 )
return nProofOfWorkLimit;
// Find the first block in the averaging interval