This commit is contained in:
jl777
2018-12-31 23:42:54 -11:00
parent 0f05fef7e5
commit 1839b1d27f

View File

@@ -44,12 +44,10 @@ int32_t GetSelfimportProof(CMutableTransaction &mtx,CScript &scriptPubKey,TxProo
if ( ASSETCHAINS_SELFIMPORT == "BEAM" ) if ( ASSETCHAINS_SELFIMPORT == "BEAM" )
{ {
// confirm via ASSETCHAINS_BEAMPORT that burnTx/hash is a valid BEAM burn // confirm via ASSETCHAINS_BEAMPORT that burnTx/hash is a valid BEAM burn
return(-1);
} }
else if ( ASSETCHAINS_SELFIMPORT == "CODA" ) else if ( ASSETCHAINS_SELFIMPORT == "CODA" )
{ {
// confirm via ASSETCHAINS_CODAPORT that burnTx/hash is a valid CODA burn // confirm via ASSETCHAINS_CODAPORT that burnTx/hash is a valid CODA burn
return(-1);
} }
else else
{ {
@@ -80,19 +78,16 @@ int32_t GetSelfimportProof(CMutableTransaction &mtx,CScript &scriptPubKey,TxProo
proof = std::make_pair(txid,newBranch); proof = std::make_pair(txid,newBranch);
return(0); 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 else
{ {
// ASSETCHAINS_SELFIMPORT and external coin is the assetchains symbol in the burnTx OP_RETURN // ASSETCHAINS_SELFIMPORT and external coin is the assetchains symbol in the burnTx OP_RETURN
// burnAmount, rawtx and rawproof should be enough for gatewaysdeposit equivalent // burnAmount, rawtx and rawproof should be enough for gatewaysdeposit equivalent
return(-1);
} }
} }
else return(-1); return(-1);
return(0);
} }
// use proof from the above functions to validate the import // use proof from the above functions to validate the import