added default err report in info
This commit is contained in:
@@ -2047,6 +2047,10 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight)
|
||||
else if (retcode == -4) {
|
||||
result.push_back(Pair("result", "error"));
|
||||
result.push_back(Pair("error", "error scanning chain"));
|
||||
}
|
||||
else {
|
||||
result.push_back(Pair("result", "error"));
|
||||
result.push_back(Pair("error", retcode));
|
||||
}
|
||||
return(result);
|
||||
}
|
||||
|
||||
@@ -192,9 +192,9 @@ static const char *notaries_elected[NUM_KMD_SEASONS][NUM_KMD_NOTARIES][2] =
|
||||
#define KOMODO_VALUETOOBIG(x) ((x) > (uint64_t)10000000001*COIN)
|
||||
|
||||
//#ifndef TESTMODE
|
||||
#define PRICES_DAYWINDOW ((3600*24/ASSETCHAINS_BLOCKTIME) + 1)
|
||||
//#define PRICES_DAYWINDOW ((3600*24/ASSETCHAINS_BLOCKTIME) + 1)
|
||||
//#else
|
||||
//#define PRICES_DAYWINDOW (7)
|
||||
#define PRICES_DAYWINDOW (7)
|
||||
//#endif
|
||||
|
||||
extern uint8_t ASSETCHAINS_TXPOW,ASSETCHAINS_PUBLIC;
|
||||
|
||||
Reference in New Issue
Block a user