From 89842a56b76986f33a4df13f3cc61b8949a87413 Mon Sep 17 00:00:00 2001 From: Mihailo Milenkovic Date: Tue, 27 Aug 2019 12:12:40 +0200 Subject: [PATCH] Add error message on return in gatewaysclaim tx --- src/cc/gateways.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cc/gateways.cpp b/src/cc/gateways.cpp index 1a48928c4..8c7e27ebc 100644 --- a/src/cc/gateways.cpp +++ b/src/cc/gateways.cpp @@ -1114,6 +1114,8 @@ std::string GatewaysClaim(uint64_t txfee,uint256 bindtxid,std::string refcoin,ui if ( CCchange != 0 ) mtx.vout.push_back(MakeTokensCC1vout(EVAL_GATEWAYS,CCchange,gatewayspk)); return(FinalizeCCTx(0,cp,mtx,mypk,txfee,EncodeGatewaysClaimOpRet('C',tokenid,bindtxid,refcoin,deposittxid,destpub,amount))); } + CCerror = strprintf("cant find enough tokens in gateways address for given amount"); + LOGSTREAM("gatewayscc",CCLOG_INFO, stream << CCerror << std::endl); return(""); }