mindiff exception for notaries

This commit is contained in:
jl777
2016-09-23 10:30:15 -03:00
parent 1e613927be
commit 50027f0631
10 changed files with 58 additions and 26 deletions

View File

@@ -19,18 +19,25 @@
#include <stdint.h>
#include <stdio.h>
int32_t komodo_checkmsg(void *bitcoinpeer,uint8_t *data,int32_t datalen)
int32_t IS_KOMODO_NOTARY;
int32_t "C" komodo_is_notaryblock(void *block)
{
return(0);
}
int32_t "C" komodo_checkmsg(void *bitcoinpeer,uint8_t *data,int32_t datalen)
{
fprintf(stderr,"KOMODO.[%d] message from peer.%p\n",datalen,bitcoinpeer);
return(0);
}
int32_t komodo_blockcheck(void *block)
int32_t "C" komodo_blockcheck(void *block,uint32_t *nBitsp)
{
//fprintf(stderr,"check block %p\n",block);
// 1 -> valid notary block
// 1 -> valid notary block, change nBits to KOMODO_MINDIFF_NBITS
// -1 -> invalid, ie, prior to notarized block
return(0);
return(0); // normal PoW block
}
#endif