From c81d7632e9dc8741ddb33e7f605f654bf3f9da09 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Sat, 13 Jun 2015 08:19:48 +0000 Subject: Add Dogecoin current fee calculation logic Introduces 1 COIN/kb fees, rounded up to the next 1 COIN. Disable free transactions Dust outputs incur a 1 COIN additional fee Add unit tests for fee calculation Update existing unit tests with higher transaction values so that transactions are still standard --- src/test/script_P2SH_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/script_P2SH_tests.cpp') diff --git a/src/test/script_P2SH_tests.cpp b/src/test/script_P2SH_tests.cpp index c8cfe2872..51bf47c9d 100644 --- a/src/test/script_P2SH_tests.cpp +++ b/src/test/script_P2SH_tests.cpp @@ -184,7 +184,7 @@ BOOST_AUTO_TEST_CASE(set) for (int i = 0; i < 4; i++) { txFrom.vout[i].scriptPubKey = outer[i]; - txFrom.vout[i].nValue = CENT; + txFrom.vout[i].nValue = COIN; } BOOST_CHECK(IsStandardTx(txFrom, reason)); @@ -195,7 +195,7 @@ BOOST_AUTO_TEST_CASE(set) txTo[i].vout.resize(1); txTo[i].vin[0].prevout.n = i; txTo[i].vin[0].prevout.hash = txFrom.GetHash(); - txTo[i].vout[0].nValue = 1*CENT; + txTo[i].vout[0].nValue = 1*COIN; txTo[i].vout[0].scriptPubKey = inner[i]; #ifdef ENABLE_WALLET BOOST_CHECK_MESSAGE(IsMine(keystore, txFrom.vout[i].scriptPubKey), strprintf("IsMine %d", i)); -- cgit v1.2.3