Add support for High Performance Blockchain
homepage: https://hpb.io block explorer: https://hpbscan.org network statistics : https://hpbscan.org git: https://github.com/hpb-project slip0044 index : 269 chain ID: 269
This commit is contained in:
@@ -24,7 +24,8 @@ typedef enum chain_kind_e {
|
||||
CHAIN_KIND_ATHEIOS,
|
||||
CHAIN_KIND_GOCHAIN,
|
||||
CHAIN_KIND_MIX,
|
||||
CHAIN_KIND_REOSC
|
||||
CHAIN_KIND_REOSC,
|
||||
CHAIN_KIND_HPB
|
||||
} chain_kind_t;
|
||||
|
||||
typedef struct chain_config_s {
|
||||
|
||||
@@ -1520,6 +1520,9 @@ tokenDefinition_t* getKnownToken() {
|
||||
case CHAIN_KIND_REOSC:
|
||||
numTokens = NUM_TOKENS_REOSC;
|
||||
break;
|
||||
case CHAIN_KIND_HPB:
|
||||
numTokens = NUM_TOKENS_HPB;
|
||||
break;
|
||||
}
|
||||
for (i=0; i<numTokens; i++) {
|
||||
switch(chainConfig->kind) {
|
||||
@@ -1583,7 +1586,10 @@ tokenDefinition_t* getKnownToken() {
|
||||
case CHAIN_KIND_REOSC:
|
||||
currentToken = (tokenDefinition_t *)PIC(&TOKENS_REOSC[i]);
|
||||
break;
|
||||
}
|
||||
case CHAIN_KIND_HPB:
|
||||
currentToken = (tokenDefinition_t *)PIC(&TOKENS_HPB[i]);
|
||||
break;
|
||||
}
|
||||
if (os_memcmp(currentToken->address, tmpContent.txContent.destination, 20) == 0) {
|
||||
return currentToken;
|
||||
}
|
||||
|
||||
@@ -1173,3 +1173,5 @@ const tokenDefinition_t const TOKENS_GOCHAIN[NUM_TOKENS_GOCHAIN] = {};
|
||||
const tokenDefinition_t const TOKENS_MIX[NUM_TOKENS_MIX] = {};
|
||||
|
||||
const tokenDefinition_t const TOKENS_REOSC[NUM_TOKENS_REOSC] = {};
|
||||
|
||||
const tokenDefinition_t const TOKENS_HPB[NUM_TOKENS_HPB] = {};
|
||||
|
||||
@@ -43,6 +43,7 @@ typedef struct tokenDefinition_t {
|
||||
#define NUM_TOKENS_GOCHAIN 0
|
||||
#define NUM_TOKENS_MIX 0
|
||||
#define NUM_TOKENS_REOSC 0
|
||||
#define NUM_TOKENS_HPB 0
|
||||
|
||||
extern tokenDefinition_t const TOKENS_AKROMA[NUM_TOKENS_AKROMA];
|
||||
extern tokenDefinition_t const TOKENS_ELLAISM[NUM_TOKENS_ELLAISM];
|
||||
@@ -64,3 +65,4 @@ extern tokenDefinition_t const TOKENS_ATHEIOS[NUM_TOKENS_ATHEIOS];
|
||||
extern tokenDefinition_t const TOKENS_GOCHAIN[NUM_TOKENS_GOCHAIN];
|
||||
extern tokenDefinition_t const TOKENS_MIX[NUM_TOKENS_MIX];
|
||||
extern tokenDefinition_t const TOKENS_REOSC[NUM_TOKENS_REOSC];
|
||||
extern tokenDefinition_t const TOKENS_HPB[NUM_TOKENS_HPB];
|
||||
|
||||
Reference in New Issue
Block a user