From f8fb4922dafa66ba988ae7c76f216f13df7bb860 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 7 May 2018 14:14:12 +0300 Subject: [PATCH] Test --- src/miner.cpp | 3 ++- src/wallet/rpcwallet.cpp | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 6063e2ea0..e113571dd 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -491,7 +491,8 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) pblocktemplate->vTxFees.push_back(txfees); pblocktemplate->vTxSigOps.push_back(GetLegacySigOpCount(txNotary)); nFees += txfees; - } + fprintf(stderr,"add notaryvin\n"); + } else fprintf(stderr,"error adding notaryvin\n"); } else { diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 9abf741ff..fef435f1e 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4467,8 +4467,7 @@ uint32_t komodo_stake(int32_t validateflag,arith_uint256 bnTarget,int32_t nHeigh int32_t komodo_notaryvin(CMutableTransaction &txNew,uint8_t *notarypub33) { - set setAddress; uint8_t *script,utxosig[128]; uint256 utxotxid; uint64_t utxovalue; int32_t i,siglen=0,nMinDepth = 1,nMaxDepth = 9999999; vector vecOutputs; uint32_t utxovout,eligible,earliest = 0; CScript best_scriptPubKey; arith_uint256 bnTarget; bool fNegative,fOverflow; - bnTarget.SetCompact(KOMODO_MINDIFF_NBITS, &fNegative, &fOverflow); + set setAddress; uint8_t *script,utxosig[128]; uint256 utxotxid; uint64_t utxovalue; int32_t i,siglen=0,nMinDepth = 1,nMaxDepth = 9999999; vector vecOutputs; uint32_t utxovout,eligible,earliest = 0; CScript best_scriptPubKey; bool fNegative,fOverflow; assert(pwalletMain != NULL); LOCK2(cs_main, pwalletMain->cs_wallet); utxovalue = 0;