test
This commit is contained in:
@@ -436,7 +436,7 @@ void IncrementExtraNonce(CBlock* pblock, CBlockIndex* pindexPrev, unsigned int&
|
|||||||
// Internal miner
|
// Internal miner
|
||||||
//
|
//
|
||||||
#define ROUNDROBIN_DELAY 10
|
#define ROUNDROBIN_DELAY 10
|
||||||
extern int32_t IS_KOMODO_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE;
|
extern int32_t IS_KOMODO_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAIN_INIT,KOMODO_INITDONE;
|
||||||
extern std::string NOTARY_PUBKEY;
|
extern std::string NOTARY_PUBKEY;
|
||||||
extern uint8_t NOTARY_PUBKEY33[33];
|
extern uint8_t NOTARY_PUBKEY33[33];
|
||||||
uint32_t Mining_start,Mining_height;
|
uint32_t Mining_start,Mining_height;
|
||||||
@@ -511,8 +511,6 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
|
|
||||||
unsigned int n = chainparams.EquihashN();
|
unsigned int n = chainparams.EquihashN();
|
||||||
unsigned int k = chainparams.EquihashK();
|
unsigned int k = chainparams.EquihashK();
|
||||||
extern int32_t ASSETCHAIN_INIT,KOMODO_INITDONE; extern uint8_t NOTARY_PUBKEY33[33];
|
|
||||||
int32_t komodo_chosennotary(int32_t *notaryidp,int32_t height,uint8_t *pubkey33);
|
|
||||||
int32_t notaryid = -1;
|
int32_t notaryid = -1;
|
||||||
while ( ASSETCHAIN_INIT == 0 || KOMODO_INITDONE == 0 )
|
while ( ASSETCHAIN_INIT == 0 || KOMODO_INITDONE == 0 )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ bool CheckProofOfWork(int32_t height,uint8_t *pubkey33,uint256 hash, unsigned in
|
|||||||
}
|
}
|
||||||
else if ( height == 0 && KOMODO_CHOSEN_ONE != 0 )
|
else if ( height == 0 && KOMODO_CHOSEN_ONE != 0 )
|
||||||
{
|
{
|
||||||
|
extern uint8_t NOTARY_PUBKEY33[33];
|
||||||
bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow);
|
bnTarget.SetCompact(KOMODO_MINDIFF_NBITS,&fNegative,&fOverflow);
|
||||||
memcpy(pubkey33,NOTARY_PUBKEY33,33);
|
memcpy(pubkey33,NOTARY_PUBKEY33,33);
|
||||||
special = 1;
|
special = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user