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:
Nicemanss
2018-11-09 00:25:04 +01:00
parent b678aa95cf
commit 24433ce7d4
10 changed files with 19 additions and 5 deletions

View File

@@ -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;
}