corr errcode check in syntheticprice

This commit is contained in:
dimxy
2019-05-09 18:18:04 +05:00
parent 4d9de1ef92
commit ab7d088b25

View File

@@ -1146,10 +1146,10 @@ int64_t prices_syntheticprice(std::vector<uint16_t> vec, int32_t height, int32_t
if (errcode != 0) if (errcode != 0)
std::cerr << "prices_syntheticprice errcode in switch=" << errcode << std::endl; std::cerr << "prices_syntheticprice errcode in switch=" << errcode << std::endl;
//if( errcode = -1 ) { if( errcode == -1 ) {
// std::cerr << "prices_syntheticprice error getting price (could be end of chain)" << std::endl; std::cerr << "prices_syntheticprice error getting price (could be end of chain)" << std::endl;
// return errcode; return errcode;
//} }
if (errcode == -13) { if (errcode == -13) {
std::cerr << "prices_syntheticprice overflow in price" << std::endl; std::cerr << "prices_syntheticprice overflow in price" << std::endl;