]> Git Repo - VerusCoin.git/commitdiff
Test
authorjl777 <[email protected]>
Wed, 25 Jul 2018 20:48:01 +0000 (09:48 -1100)
committerjl777 <[email protected]>
Wed, 25 Jul 2018 20:48:01 +0000 (09:48 -1100)
src/cc/assets.cpp

index 73af4ca9c378acb9a67435dd9bf9bd99d45570e0..1aea32e00ba2b72899ff919c0f83b0e3077ec702 100644 (file)
@@ -298,7 +298,9 @@ bool AssetsValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx
                 return eval->Invalid("mismatched origpubkeys for fill");
             else
             {
-                if ( ValidateAssetRemainder(1,remaining_price,tx.vout[0].nValue,assetoshis,tx.vout[1].nValue,tx.vout[2].nValue,totalunits) == false )
+                //ValidateAssetRemainder: orig_nValue == 10 || received_nValue == 0 || paidunits == 10 || totalunits == 100000000000
+                //bool ValidateAssetRemainder(int32_t sellflag,uint64_t remaining_price,uint64_t remaining_nValue,uint64_t orig_nValue,uint64_t received_nValue,uint64_t paidunits,uint64_t totalunits)
+                if ( ValidateAssetRemainder(1,remaining_price,tx.vout[0].nValue,assetoshis,tx.vout[2].nValue,tx.vout[1].nValue,totalunits) == false )
                     return eval->Invalid("mismatched remainder for fill");
                 else if ( ConstrainVout(tx.vout[1],1,0,0) == 0 )
                     return eval->Invalid("normal vout1 for fillask");
This page took 0.02527 seconds and 4 git commands to generate.