set import max priotity, and also 0.001 flat fee.

This commit is contained in:
blackjok3r
2019-01-08 23:07:34 +08:00
parent 0b24307e2b
commit 0dee67a800
2 changed files with 5 additions and 4 deletions

View File

@@ -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 )