lol
This commit is contained in:
@@ -25,22 +25,22 @@
|
||||
#define PACKED __attribute__((packed))
|
||||
#endif*/
|
||||
|
||||
#ifndef KOMODO_STRUCTS_H
|
||||
#define KOMODO_STRUCTS_H
|
||||
#ifndef HUSH_STRUCTS_H
|
||||
#define HUSH_STRUCTS_H
|
||||
#define GENESIS_NBITS 0x1f00ffff
|
||||
#define KOMODO_MINRATIFY ((height < 90000) ? 7 : 11)
|
||||
#define KOMODO_NOTARIES_HARDCODED 180000 // DONT CHANGE
|
||||
#define HUSH_NOTARIES_HARDCODED 180000 // DONT CHANGE
|
||||
#define HUSH_MAXBLOCKS 250000 // DONT CHANGE
|
||||
#define KOMODO_EVENT_RATIFY 'P'
|
||||
#define KOMODO_EVENT_NOTARIZED 'N'
|
||||
#define KOMODO_EVENT_KMDHEIGHT 'K'
|
||||
#define KOMODO_EVENT_REWIND 'B'
|
||||
#define KOMODO_EVENT_PRICEFEED 'V'
|
||||
#define KOMODO_EVENT_OPRETURN 'R'
|
||||
#define KOMODO_OPRETURN_DEPOSIT 'D'
|
||||
#define KOMODO_OPRETURN_ISSUED 'I' // assetchain
|
||||
#define KOMODO_OPRETURN_WITHDRAW 'W' // assetchain
|
||||
#define KOMODO_OPRETURN_REDEEMED 'X'
|
||||
#define HUSH_EVENT_RATIFY 'P'
|
||||
#define HUSH_EVENT_NOTARIZED 'N'
|
||||
#define HUSH_EVENT_KMDHEIGHT 'K'
|
||||
#define HUSH_EVENT_REWIND 'B'
|
||||
#define HUSH_EVENT_PRICEFEED 'V'
|
||||
#define HUSH_EVENT_OPRETURN 'R'
|
||||
#define HUSH_OPRETURN_DEPOSIT 'D'
|
||||
#define HUSH_OPRETURN_ISSUED 'I' // assetchain
|
||||
#define HUSH_OPRETURN_WITHDRAW 'W' // assetchain
|
||||
#define HUSH_OPRETURN_REDEEMED 'X'
|
||||
|
||||
#define HUSH_KVPROTECTED 1
|
||||
#define HUSH_KVBINARY 2
|
||||
@@ -58,14 +58,14 @@ typedef union _bits320 bits320;
|
||||
|
||||
struct komodo_kv { UT_hash_handle hh; bits256 pubkey; uint8_t *key,*value; int32_t height; uint32_t flags; uint16_t keylen,valuesize; };
|
||||
|
||||
struct komodo_event_notarized { uint256 blockhash,desttxid,MoM; int32_t notarizedheight,MoMdepth; char dest[16]; };
|
||||
struct komodo_event_pubkeys { uint8_t num; uint8_t pubkeys[64][33]; };
|
||||
struct komodo_event_opreturn { uint256 txid; uint64_t value; uint16_t vout,oplen; uint8_t opret[]; };
|
||||
struct komodo_event_pricefeed { uint8_t num; uint32_t prices[35]; };
|
||||
struct hush_event_notarized { uint256 blockhash,desttxid,MoM; int32_t notarizedheight,MoMdepth; char dest[16]; };
|
||||
struct hush_event_pubkeys { uint8_t num; uint8_t pubkeys[64][33]; };
|
||||
struct hush_event_opreturn { uint256 txid; uint64_t value; uint16_t vout,oplen; uint8_t opret[]; };
|
||||
struct hush_event_pricefeed { uint8_t num; uint32_t prices[35]; };
|
||||
|
||||
struct komodo_event
|
||||
struct hush_event
|
||||
{
|
||||
struct komodo_event *related;
|
||||
struct hush_event *related;
|
||||
uint16_t len;
|
||||
int32_t height;
|
||||
uint8_t type,reorged;
|
||||
@@ -91,26 +91,26 @@ struct notarized_checkpoint
|
||||
int32_t nHeight,notarized_height,MoMdepth,MoMoMdepth,MoMoMoffset,kmdstarti,kmdendi;
|
||||
};
|
||||
|
||||
struct komodo_ccdataMoM
|
||||
struct hush_ccdataMoM
|
||||
{
|
||||
uint256 MoM;
|
||||
int32_t MoMdepth,notarized_height,height,txi;
|
||||
};
|
||||
|
||||
struct komodo_ccdata_entry { uint256 MoM; int32_t notarized_height,kmdheight,txi; char symbol[65]; };
|
||||
struct komodo_ccdatapair { int32_t notarized_height,MoMoMoffset; };
|
||||
struct hush_ccdata_entry { uint256 MoM; int32_t notarized_height,kmdheight,txi; char symbol[65]; };
|
||||
struct hush_ccdatapair { int32_t notarized_height,MoMoMoffset; };
|
||||
|
||||
struct komodo_ccdataMoMoM
|
||||
struct hush_ccdataMoMoM
|
||||
{
|
||||
uint256 MoMoM;
|
||||
int32_t kmdstarti,kmdendi,MoMoMoffset,MoMoMdepth,numpairs,len;
|
||||
struct komodo_ccdatapair *pairs;
|
||||
struct hush_ccdatapair *pairs;
|
||||
};
|
||||
|
||||
struct komodo_ccdata
|
||||
struct hush_ccdata
|
||||
{
|
||||
struct komodo_ccdata *next,*prev;
|
||||
struct komodo_ccdataMoM MoMdata;
|
||||
struct hush_ccdata *next,*prev;
|
||||
struct hush_ccdataMoM MoMdata;
|
||||
uint32_t CCid,len;
|
||||
char symbol[65];
|
||||
};
|
||||
@@ -122,8 +122,8 @@ struct hush_state
|
||||
uint32_t SAVEDTIMESTAMP;
|
||||
uint64_t deposited,issued,withdrawn,approved,redeemed,shorted;
|
||||
struct notarized_checkpoint *NPOINTS; int32_t NUM_NPOINTS,last_NPOINTSi;
|
||||
struct komodo_event **Komodo_events; int32_t Komodo_numevents;
|
||||
struct hush_event **Hush_events; int32_t Komodo_numevents;
|
||||
uint32_t RTbufs[64][3]; uint64_t RTmask;
|
||||
};
|
||||
|
||||
#endif /* KOMODO_STRUCTS_H */
|
||||
#endif /* HUSH_STRUCT_H */
|
||||
|
||||
Reference in New Issue
Block a user