From 162694ad6a53c219bdfaf5848f8efdea8be6832b Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Thu, 9 May 2019 17:48:21 +0800 Subject: [PATCH] fix pricesbet --- src/cc/prices.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/cc/prices.cpp b/src/cc/prices.cpp index 27529bca4..2116f2e8e 100644 --- a/src/cc/prices.cpp +++ b/src/cc/prices.cpp @@ -1380,15 +1380,6 @@ int64_t prices_enumaddedbets(uint256 &batontxid, std::vector &bets, // pricesbet rpc impl: make betting tx UniValue PricesBet(int64_t txfee, int64_t amount, int16_t leverage, std::vector synthetic) { - fprintf(stderr, "assetchains_contract.%i vs eval_prices.%i\n",ASSETCHAINS_EARLYTXIDCONTRACT, EVAL_PRICES); - if ( ASSETCHAINS_EARLYTXIDCONTRACT == EVAL_PRICES && KOMODO_EARLYTXID_SCRIPTPUB.size() == 0 ) - { - // Lock here, as in validation we cannot call lock in the function itself. - // may not be needed as the validation call to update the global, is called in a LOCK already, and it can only update there and here. - LOCK(cs_main); - GetKomodoEarlytxidScriptPub(); - } - /* int32_t nextheight = komodo_nextheight(); CMutableTransaction mtx = CreateNewContextualCMutableTransaction(Params().GetConsensus(), nextheight); UniValue result(UniValue::VOBJ); struct CCcontract_info *cp, C; @@ -1439,7 +1430,6 @@ UniValue PricesBet(int64_t txfee, int64_t amount, int16_t leverage, std::vector< result.push_back(Pair("result", "error")); result.push_back(Pair("error", "not enough funds")); return(result); - */ } // pricesaddfunding rpc impl: add yet another bet