|
|
@ -258,7 +258,8 @@ static bool ValidateCostbasisTx(struct CCcontract_info *cp, Eval *eval, const CT |
|
|
|
int32_t retcode = prices_syntheticprofits(costbasis, firstheight, firstheight + PRICES_DAYWINDOW, leverage, vec, positionsize, 0, profits, lastprice); |
|
|
|
if (retcode < 0) |
|
|
|
return eval->Invalid("cannot calculate costbasis yet"); |
|
|
|
if( costbasis != costbasisInOpret ) |
|
|
|
std::cerr << "ValidateCostbasisTx() costbasis=" << costbasis << " costbasisInOpret=" << costbasisInOpret << std::endl; |
|
|
|
if( 0 && costbasis != costbasisInOpret ) |
|
|
|
return eval->Invalid("incorrect costbasis value"); |
|
|
|
|
|
|
|
return true; |
|
|
|