Send baton amount

This commit is contained in:
jl777
2019-01-14 22:26:31 -11:00
parent 54b98b8460
commit a362c04ae9

View File

@@ -402,7 +402,7 @@ UniValue MarmaraReceive(uint64_t txfee,CPubKey senderpk,int64_t amount,std::stri
if ( AddNormalinputs(mtx,mypk,batonamount + txfee,1) > 0 )
{
errorstr = (char *)"couldnt finalize CCtx";
mtx.vout.push_back(MakeCC1vout(EVAL_MARMARA,amount,senderpk));
mtx.vout.push_back(MakeCC1vout(EVAL_MARMARA,batonamount,senderpk));
rawtx = FinalizeCCTx(0,cp,mtx,mypk,txfee,MarmaraLoopOpret('R',createtxid,senderpk,amount,matures,currency));
if ( rawtx.size() > 0 )
errorstr = 0;