From 6f1f4413babd28a4993ced50d3d51d06fbb25a29 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Sat, 11 May 2019 16:25:27 +0800 Subject: [PATCH] fix payments release --- src/cc/payments.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cc/payments.cpp b/src/cc/payments.cpp index 5d6383c29..a8630f25c 100644 --- a/src/cc/payments.cpp +++ b/src/cc/payments.cpp @@ -716,6 +716,7 @@ UniValue PaymentsRelease(struct CCcontract_info *cp,char *jsonstr) if ( funcid == 'C' ) { // normal payments + m = txidoprets.size(); for (i=0; i scriptPubKey,opret; @@ -1108,7 +1109,7 @@ UniValue PaymentsCreate(struct CCcontract_info *cp,char *jsonstr) for (i=0; i scriptPubKey,opret; int64_t allocation; - fprintf(stderr, "txid.%s\n",txidoprets[i].GetHex().c_str()); + //fprintf(stderr, "txid.%s\n",txidoprets[i].GetHex().c_str()); if ( myGetTransaction(txidoprets[i],tx,hashBlock) != 0 && tx.vout.size() > 1 && DecodePaymentsTxidOpRet(tx.vout[tx.vout.size()-1].scriptPubKey,allocation,scriptPubKey,opret) == 'T' ) { totalallocations += allocation;