Add support for Ether-1 (ETHO)

This commit is contained in:
Michael Ira Krufky
2018-08-05 02:19:44 -04:00
parent a8877b319a
commit 4034d5f4d0
5 changed files with 16 additions and 1 deletions

View File

@@ -1552,6 +1552,9 @@ tokenDefinition_t* getKnownToken() {
case CHAIN_KIND_ELLAISM:
numTokens = NUM_TOKENS_ELLAISM;
break;
case CHAIN_KIND_ETHER1:
numTokens = NUM_TOKENS_ETHER1;
break;
}
for (i=0; i<numTokens; i++) {
switch(chainConfig->kind) {
@@ -1597,6 +1600,9 @@ tokenDefinition_t* getKnownToken() {
case CHAIN_KIND_ELLAISM:
currentToken = PIC(&TOKENS_ELLAISM[i]);
break;
case CHAIN_KIND_ETHER1:
currentToken = PIC(&TOKENS_ETHER1[i]);
break;
}
if (os_memcmp(currentToken->address, tmpContent.txContent.destination, 20) == 0) {
return currentToken;