test
This commit is contained in:
@@ -60,6 +60,7 @@ public:
|
|||||||
#include "arith_uint256.h"
|
#include "arith_uint256.h"
|
||||||
|
|
||||||
int8_t Minerids[1024 * 1024 * 5]; // 5 million blocks
|
int8_t Minerids[1024 * 1024 * 5]; // 5 million blocks
|
||||||
|
#include "komodo_structs.h"
|
||||||
|
|
||||||
#include "komodo_globals.h"
|
#include "komodo_globals.h"
|
||||||
#include "komodo_utils.h"
|
#include "komodo_utils.h"
|
||||||
|
|||||||
17
src/komodo.h
17
src/komodo.h
@@ -37,25 +37,12 @@
|
|||||||
#define KOMODO_MINRATIFY 7
|
#define KOMODO_MINRATIFY 7
|
||||||
#define KOMODO_MAXBLOCKS 5000000
|
#define KOMODO_MAXBLOCKS 5000000
|
||||||
|
|
||||||
|
#include "komodo_structs.h"
|
||||||
|
|
||||||
FILE *Minerfp;
|
FILE *Minerfp;
|
||||||
int8_t Minerids[KOMODO_MAXBLOCKS]; // 5 million blocks
|
int8_t Minerids[KOMODO_MAXBLOCKS]; // 5 million blocks
|
||||||
#define KOMODO_ELECTION_GAP ((ASSETCHAINS_SYMBOL[0] == 0) ? 2000 : 100)
|
#define KOMODO_ELECTION_GAP ((ASSETCHAINS_SYMBOL[0] == 0) ? 2000 : 100)
|
||||||
|
|
||||||
struct pax_transaction
|
|
||||||
{
|
|
||||||
UT_hash_handle hh;
|
|
||||||
uint256 txid;
|
|
||||||
uint64_t komodoshis,fiatoshis;
|
|
||||||
int32_t marked,height,otherheight;
|
|
||||||
uint16_t vout;
|
|
||||||
char symbol[16],coinaddr[64]; uint8_t rmd160[20],shortflag;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct nutxo_entry { UT_hash_handle hh; uint256 txhash; uint64_t voutmask; int32_t notaryid,height; };
|
|
||||||
struct knotary_entry { UT_hash_handle hh; uint8_t pubkey[33],notaryid; };
|
|
||||||
struct knotaries_entry { int32_t height,numnotaries; struct knotary_entry *Notaries; };
|
|
||||||
struct notarized_checkpoint { uint256 notarized_hash,notarized_desttxid; int32_t nHeight,notarized_height; };
|
|
||||||
pthread_mutex_t komodo_mutex;
|
|
||||||
int32_t KMDHEIGHT = 43000;
|
int32_t KMDHEIGHT = 43000;
|
||||||
|
|
||||||
struct pax_transaction *PAX;
|
struct pax_transaction *PAX;
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ void komodo_init(int32_t height);
|
|||||||
void komodo_assetchain_pubkeys(char *jsonstr);
|
void komodo_assetchain_pubkeys(char *jsonstr);
|
||||||
int32_t komodo_chosennotary(int32_t *notaryidp,int32_t height,uint8_t *pubkey33);
|
int32_t komodo_chosennotary(int32_t *notaryidp,int32_t height,uint8_t *pubkey33);
|
||||||
|
|
||||||
|
pthread_mutex_t komodo_mutex;
|
||||||
int COINBASE_MATURITY = 100;
|
int COINBASE_MATURITY = 100;
|
||||||
|
|
||||||
int32_t IS_KOMODO_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAINS_SEED,KOMODO_ON_DEMAND;
|
int32_t IS_KOMODO_NOTARY,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAINS_SEED,KOMODO_ON_DEMAND;
|
||||||
|
|||||||
29
src/komodo_structs.h
Normal file
29
src/komodo_structs.h
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/******************************************************************************
|
||||||
|
* Copyright © 2014-2016 The SuperNET Developers. *
|
||||||
|
* *
|
||||||
|
* See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at *
|
||||||
|
* the top-level directory of this distribution for the individual copyright *
|
||||||
|
* holder information and the developer policies on copyright and licensing. *
|
||||||
|
* *
|
||||||
|
* Unless otherwise agreed in a custom licensing agreement, no part of the *
|
||||||
|
* SuperNET software, including this file may be copied, modified, propagated *
|
||||||
|
* or distributed except according to the terms contained in the LICENSE file *
|
||||||
|
* *
|
||||||
|
* Removal or modification of this copyright notice is prohibited. *
|
||||||
|
* *
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
struct pax_transaction
|
||||||
|
{
|
||||||
|
UT_hash_handle hh;
|
||||||
|
uint256 txid;
|
||||||
|
uint64_t komodoshis,fiatoshis;
|
||||||
|
int32_t marked,height,otherheight;
|
||||||
|
uint16_t vout;
|
||||||
|
char symbol[16],coinaddr[64]; uint8_t rmd160[20],shortflag;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct nutxo_entry { UT_hash_handle hh; uint256 txhash; uint64_t voutmask; int32_t notaryid,height; };
|
||||||
|
struct knotary_entry { UT_hash_handle hh; uint8_t pubkey[33],notaryid; };
|
||||||
|
struct knotaries_entry { int32_t height,numnotaries; struct knotary_entry *Notaries; };
|
||||||
|
struct notarized_checkpoint { uint256 notarized_hash,notarized_desttxid; int32_t nHeight,notarized_height; };
|
||||||
Reference in New Issue
Block a user