]> Git Repo - VerusCoin.git/blame - src/komodo_structs.h
Revert "test"
[VerusCoin.git] / src / komodo_structs.h
CommitLineData
3face669 1/******************************************************************************
2 * Copyright © 2014-2016 The SuperNET Developers. *
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
5fb74817 16#include "uthash.h"
17#include "utlist.h"
18
d3d31824 19/*#ifdef WIN32
ab918767 20#define PACKED
21#else
22#define PACKED __attribute__((packed))
d3d31824 23#endif*/
ab918767 24
45a3a2ff 25#define GENESIS_NBITS 0x1f00ffff
aa114a60 26#define KOMODO_MINRATIFY ((height < 90000) ? 7 : 11)
45a3a2ff 27#define KOMODO_MAXBLOCKS 5000000
28
ab918767 29#define KOMODO_EVENT_RATIFY 'P'
30#define KOMODO_EVENT_NOTARIZED 'N'
31#define KOMODO_EVENT_KMDHEIGHT 'K'
32#define KOMODO_EVENT_REWIND 'B'
33#define KOMODO_EVENT_PRICEFEED 'V'
34#define KOMODO_EVENT_OPRETURN 'R'
35#define KOMODO_OPRETURN_DEPOSIT 'D'
36#define KOMODO_OPRETURN_ISSUED 'I' // assetchain
37#define KOMODO_OPRETURN_WITHDRAW 'W' // assetchain
38#define KOMODO_OPRETURN_REDEEMED 'X'
39
40struct komodo_event_notarized { uint256 blockhash,desttxid; int32_t notarizedheight; char dest[16]; };
41struct komodo_event_pubkeys { uint8_t num; uint8_t pubkeys[64][33]; };
42struct komodo_event_opreturn { uint256 txid; uint64_t value; uint16_t vout,oplen; uint8_t opret[]; };
43struct komodo_event_pricefeed { uint8_t num; uint32_t prices[35]; };
44
45struct komodo_event
46{
47 struct komodo_event *related;
48 uint16_t len;
49 int32_t height;
50 uint8_t type,reorged;
51 char symbol[16];
52 uint8_t space[];
d3d31824 53};
ab918767 54
3face669 55struct pax_transaction
56{
57 UT_hash_handle hh;
58 uint256 txid;
992c3be5 59 uint64_t komodoshis,fiatoshis,validated;
1db587b5 60 int32_t marked,height,otherheight,approved,didstats;
3face669 61 uint16_t vout;
afa0d2b9 62 char symbol[16],source[16],coinaddr[64]; uint8_t rmd160[20],type,buf[35];
3face669 63};
64
3face669 65struct knotary_entry { UT_hash_handle hh; uint8_t pubkey[33],notaryid; };
66struct knotaries_entry { int32_t height,numnotaries; struct knotary_entry *Notaries; };
67struct notarized_checkpoint { uint256 notarized_hash,notarized_desttxid; int32_t nHeight,notarized_height; };
d1289e41 68
69struct komodo_state
70{
71 uint256 NOTARIZED_HASH,NOTARIZED_DESTTXID;
e7a90cf9 72 int32_t SAVEDHEIGHT,CURRENT_HEIGHT,NOTARIZED_HEIGHT;
f1db88ea 73 uint32_t SAVEDTIMESTAMP;
aa114a60 74 uint64_t deposited,issued,withdrawn,approved,redeemed,shorted;
03ef7187 75 struct notarized_checkpoint *NPOINTS; int32_t NUM_NPOINTS;
ab918767 76 struct komodo_event **Komodo_events; int32_t Komodo_numevents;
635dd34d 77 uint32_t RTbufs[64][3]; uint64_t RTmask;
d1289e41 78};
This page took 0.056618 seconds and 4 git commands to generate.