FIX STKD != STAKED

This commit is contained in:
blackjok3r
2018-09-12 23:34:28 +08:00
parent 139aca9821
commit 2333d40937
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ int GetSymbolAuthority(const char* symbol)
{
if (strlen(symbol) >= 5 && strncmp(symbol, "TXSCL", 5) == 0)
return CROSSCHAIN_TXSCL;
if (strlen(symbol) >= 6 && strncmp(symbol, "STAKED", 6) == 0)
if (strlen(symbol) >= 6 && strncmp(symbol, "STKD", 4) == 0)
return CROSSCHAIN_STAKED;
return CROSSCHAIN_KOMODO;
}

View File

@@ -247,7 +247,7 @@ int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height,uint32_t timestam
{
if ( did1 == 0 )
{
if ( strncmp("STAKED",ASSETCHAINS_SYMBOL,6) == 0 )
if ( strncmp("STKD",ASSETCHAINS_SYMBOL,4) == 0 )
{
n1 = (int32_t)(sizeof(notaries_STAKED)/sizeof(*notaries_STAKED));
for (i=0; i<n1; i++)