From 1839b1d27f084a4906b57c5d4b6c3dc40b1e7ac8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 31 Dec 2018 23:42:54 -1100 Subject: [PATCH] Fix --- src/cc/import.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/cc/import.cpp b/src/cc/import.cpp index 2faf4fb07..38d054fcb 100644 --- a/src/cc/import.cpp +++ b/src/cc/import.cpp @@ -44,12 +44,10 @@ int32_t GetSelfimportProof(CMutableTransaction &mtx,CScript &scriptPubKey,TxProo if ( ASSETCHAINS_SELFIMPORT == "BEAM" ) { // confirm via ASSETCHAINS_BEAMPORT that burnTx/hash is a valid BEAM burn - return(-1); } else if ( ASSETCHAINS_SELFIMPORT == "CODA" ) { // confirm via ASSETCHAINS_CODAPORT that burnTx/hash is a valid CODA burn - return(-1); } else { @@ -80,19 +78,16 @@ int32_t GetSelfimportProof(CMutableTransaction &mtx,CScript &scriptPubKey,TxProo proof = std::make_pair(txid,newBranch); return(0); } - fprintf(stderr,"vin0[%d] -> %s vs %s\n",tx.vin[0].prevout.n,destaddr,pkaddr); + fprintf(stderr,"mismatched vin0[%d] -> %s vs %s\n",tx.vin[0].prevout.n,destaddr,pkaddr); } - return(-1); } else { // ASSETCHAINS_SELFIMPORT and external coin is the assetchains symbol in the burnTx OP_RETURN // burnAmount, rawtx and rawproof should be enough for gatewaysdeposit equivalent - return(-1); } } - else return(-1); - return(0); + return(-1); } // use proof from the above functions to validate the import