returned back err check

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

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;