]>
Commit | Line | Data |
---|---|---|
98f2e433 | 1 | /****************************************************************************** |
37fed603 | 2 | * Copyright © 2014-2017 The SuperNET Developers. * |
98f2e433 | 3 | * * |
4 | * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * | |
5 | * the top-level directory of this distribution for the individual copyright * | |
6 | * holder information and the developer policies on copyright and licensing. * | |
7 | * * | |
8 | * Unless otherwise agreed in a custom licensing agreement, no part of the * | |
9 | * SuperNET software, including this file may be copied, modified, propagated * | |
10 | * or distributed except according to the terms contained in the LICENSE file * | |
11 | * * | |
12 | * Removal or modification of this copyright notice is prohibited. * | |
13 | * * | |
14 | ******************************************************************************/ | |
15 | ||
e155dbe9 | 16 | void komodo_stateupdate(int32_t height,uint8_t notarypubs[][33],uint8_t numnotaries,uint8_t notaryid,uint256 txhash,uint64_t voutmask,uint8_t numvouts,uint32_t *pvals,uint8_t numpvals,int32_t kheight,uint32_t ktime,uint64_t opretvalue,uint8_t *opretbuf,uint16_t opretlen,uint16_t vout); |
cf0ace4a | 17 | void komodo_init(int32_t height); |
18 | int32_t komodo_notarizeddata(int32_t nHeight,uint256 *notarized_hashp,uint256 *notarized_desttxidp); | |
0ded57c8 | 19 | char *komodo_issuemethod(char *userpass,char *method,char *params,uint16_t port); |
cf0ace4a | 20 | void komodo_init(int32_t height); |
21 | void komodo_assetchain_pubkeys(char *jsonstr); | |
e6f6a829 | 22 | int32_t komodo_chosennotary(int32_t *notaryidp,int32_t height,uint8_t *pubkey33); |
48a3cd18 | 23 | int32_t komodo_isrealtime(int32_t *kmdheightp); |
b4116bb6 | 24 | uint64_t komodo_paxtotal(); |
439e76ae | 25 | int32_t komodo_longestchain(); |
afacf361 | 26 | uint64_t komodo_maxallowed(int32_t baseid); |
cf0ace4a | 27 | |
3face669 | 28 | pthread_mutex_t komodo_mutex; |
0db8cd28 | 29 | |
335f2ea7 | 30 | #define KOMODO_ELECTION_GAP 2000 //((ASSETCHAINS_SYMBOL[0] == 0) ? 2000 : 100) |
15d0fbd4 | 31 | #define IGUANA_MAXSCRIPTSIZE 10001 |
0db8cd28 | 32 | |
0db8cd28 | 33 | struct pax_transaction *PAX; |
34 | int32_t NUM_PRICES; uint32_t *PVALS; | |
35 | struct knotaries_entry *Pubkeys; | |
0db8cd28 | 36 | |
2d116f01 | 37 | struct komodo_state KOMODO_STATES[34]; |
0db8cd28 | 38 | |
1290fc05 | 39 | int COINBASE_MATURITY = 100; |
40 | ||
6ad13d7c | 41 | int32_t IS_KOMODO_NOTARY,KOMODO_REWIND,USE_EXTERNAL_PUBKEY,KOMODO_CHOSEN_ONE,ASSETCHAINS_SEED,KOMODO_ON_DEMAND,KOMODO_EXTERNAL_NOTARIES,KOMODO_PASSPORT_INITDONE,KOMODO_PAX,KOMODO_EXCHANGEWALLET; |
ab8ef450 | 42 | std::string NOTARY_PUBKEY,ASSETCHAINS_NOTARIES; |
98f2e433 | 43 | uint8_t NOTARY_PUBKEY33[33]; |
44 | ||
98f2e433 | 45 | char ASSETCHAINS_SYMBOL[16]; |
46 | uint16_t ASSETCHAINS_PORT; | |
47 | uint32_t ASSETCHAIN_INIT; | |
48 | uint32_t ASSETCHAINS_MAGIC = 2387029918; | |
49 | uint64_t ASSETCHAINS_SUPPLY = 10; | |
50 | ||
ab918767 | 51 | uint32_t KOMODO_INITDONE; |
b55c2367 | 52 | char KMDUSERPASS[4096],BTCUSERPASS[4096]; uint16_t BITCOIND_PORT = 7771; |
f846a857 | 53 | uint64_t PENDING_KOMODO_TX; |
15d0fbd4 | 54 | |
55 | struct komodo_kv *KOMODO_KV; | |
313b7381 | 56 | pthread_mutex_t KOMODO_KV_mutex; |