From ff3d484a01e24e9bb54a9fc219ffe14d8bcd8ab0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 Jul 2018 08:54:25 -1100 Subject: [PATCH] Test --- src/cc/assets.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cc/assets.cpp b/src/cc/assets.cpp index 606b6561c..5468de0b0 100644 --- a/src/cc/assets.cpp +++ b/src/cc/assets.cpp @@ -454,7 +454,12 @@ uint64_t IsAssetvout(uint64_t &price,std::vector &origpubkey,CTransacti fprintf(stderr,"CC vout v.%d of n.%d %.8f\n",v,n,(double)nValue/COIN); if ( v >= n-1 ) return(0); - if ( funcid == 'c' ) + if ( (funcid= DecodeOpRet(tx.vout[n-1].scriptPubKey,assetid,assetid2,price,origpubkey)) == 0 ) + { + fprintf(stderr,"null decodeopret\n"); + return(0); + } + else if ( funcid == 'c' ) { int32_t i; for (i=31; i>=0; i--) @@ -463,11 +468,6 @@ uint64_t IsAssetvout(uint64_t &price,std::vector &origpubkey,CTransacti if ( refassetid == tx.GetHash() && v == 0 ) return(nValue); } - else if ( (funcid= DecodeOpRet(tx.vout[n-1].scriptPubKey,assetid,assetid2,price,origpubkey)) == 0 ) - { - fprintf(stderr,"null decodeopret\n"); - return(0); - } else if ( funcid != 'E' ) { if ( assetid == refassetid )