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