@@ -21,18 +21,18 @@
|
|||||||
|
|
||||||
int32_t IS_KOMODO_NOTARY;
|
int32_t IS_KOMODO_NOTARY;
|
||||||
|
|
||||||
int32_t "C" komodo_is_notaryblock(void *block)
|
int32_t komodo_is_notaryblock(void *block)
|
||||||
{
|
{
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t "C" komodo_checkmsg(void *bitcoinpeer,uint8_t *data,int32_t datalen)
|
int32_t komodo_checkmsg(void *bitcoinpeer,uint8_t *data,int32_t datalen)
|
||||||
{
|
{
|
||||||
fprintf(stderr,"KOMODO.[%d] message from peer.%p\n",datalen,bitcoinpeer);
|
fprintf(stderr,"KOMODO.[%d] message from peer.%p\n",datalen,bitcoinpeer);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t "C" komodo_blockcheck(void *block,uint32_t *nBitsp)
|
int32_t komodo_blockcheck(void *block,uint32_t *nBitsp)
|
||||||
{
|
{
|
||||||
//fprintf(stderr,"check block %p\n",block);
|
//fprintf(stderr,"check block %p\n",block);
|
||||||
// 1 -> valid notary block, change nBits to KOMODO_MINDIFF_NBITS
|
// 1 -> valid notary block, change nBits to KOMODO_MINDIFF_NBITS
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ using namespace std;
|
|||||||
# error "Bitcoin cannot be compiled without assertions."
|
# error "Bitcoin cannot be compiled without assertions."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern "C" int32_t komodo_blockcheck(void *block,uint32_t *nBitsp);
|
extern int32_t komodo_blockcheck(void *block,uint32_t *nBitsp);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Global state
|
* Global state
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "sodium.h"
|
#include "sodium.h"
|
||||||
|
|
||||||
extern int32_t "C" komodo_is_notaryblock(void *pblock);
|
int32_t komodo_is_notaryblock(void *pblock);
|
||||||
|
|
||||||
unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params)
|
unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -115,6 +115,8 @@ Value getgenerate(const Array& params, bool fHelp)
|
|||||||
return GetBoolArg("-gen", false);
|
return GetBoolArg("-gen", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t komodo_blockcheck(void *block,uint32_t *nBitsp);
|
||||||
|
|
||||||
Value generate(const Array& params, bool fHelp)
|
Value generate(const Array& params, bool fHelp)
|
||||||
{
|
{
|
||||||
if (fHelp || params.size() < 1 || params.size() > 1)
|
if (fHelp || params.size() < 1 || params.size() > 1)
|
||||||
|
|||||||
@@ -266,6 +266,8 @@ bool CBlockTreeDB::ReadFlag(const std::string &name, bool &fValue) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int32_t komodo_blockcheck(void *block,uint32_t *nBitsp);
|
||||||
|
|
||||||
bool CBlockTreeDB::LoadBlockIndexGuts()
|
bool CBlockTreeDB::LoadBlockIndexGuts()
|
||||||
{
|
{
|
||||||
boost::scoped_ptr<leveldb::Iterator> pcursor(NewIterator());
|
boost::scoped_ptr<leveldb::Iterator> pcursor(NewIterator());
|
||||||
|
|||||||
Reference in New Issue
Block a user