From 39fefa6be968ca9da5a87e4171a4151cb3184837 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 7 May 2018 14:34:20 +0300 Subject: [PATCH] Test --- src/wallet/rpcwallet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index fef435f1e..f08368ba8 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -4488,6 +4488,8 @@ int32_t komodo_notaryvin(CMutableTransaction &txNew,uint8_t *notarypub33) continue; } CAmount nValue = out.tx->vout[out.i].nValue; + if ( nValue != 10000 ) + continue; const CScript& pk = out.tx->vout[out.i].scriptPubKey; CTxDestination address; if (ExtractDestination(out.tx->vout[out.i].scriptPubKey, address)) @@ -4508,7 +4510,7 @@ int32_t komodo_notaryvin(CMutableTransaction &txNew,uint8_t *notarypub33) const CKeyStore& keystore = *pwalletMain; txNew.vin.resize(1); txNew.vout.resize(1); - txfee = 0; + txfee = utxovalue / 2;; for (i=0; i<32; i++) ((uint8_t *)&revtxid)[i] = ((uint8_t *)&utxotxid)[31 - i]; txNew.vin[0].prevout.hash = revtxid;