From 0dee67a800d0b5257950da5d473aede299352fe4 Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Tue, 8 Jan 2019 23:07:34 +0800 Subject: [PATCH] set import max priotity, and also 0.001 flat fee. --- src/miner.cpp | 7 ++++--- src/rpc/crosschain.cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 66ba92514..3ccacea1c 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -285,9 +285,10 @@ CBlockTemplate* CreateNewBlock(const CScript& _scriptPubKeyIn, int32_t gpucount, bool fNotarisation = false; if (tx.IsCoinImport()) { - CAmount nValueIn = GetCoinImportValue(tx); - nTotalIn += nValueIn; - dPriority += (double)nValueIn * 1000; // flat multiplier + CAmount nValueIn = GetCoinImportValue(tx); // burn amount + //tx.vout[1].nValue import amount + //nTotalIn += nValueIn; + dPriority += 1e16; //(double)nValueIn * 1000; // flat multiplier } else { int numNotaryVins = 0; bool fToCryptoAddress = false; if ( komodo_is_notarytx(tx) == 1 ) diff --git a/src/rpc/crosschain.cpp b/src/rpc/crosschain.cpp index 5519f0e17..550efed71 100644 --- a/src/rpc/crosschain.cpp +++ b/src/rpc/crosschain.cpp @@ -205,7 +205,7 @@ UniValue migrate_converttoexport(const UniValue& params, bool fHelp) ptr = rawproof.data(); for (i=0; i