diff options
| author | Ross Nicoll <[email protected]> | 2015-06-13 08:19:48 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-07-31 18:11:06 +0000 |
| commit | c81d7632e9dc8741ddb33e7f605f654bf3f9da09 (patch) | |
| tree | bd3cc11c4f59f3994e7e6e5afba5564ae93012cc /src/test/script_P2SH_tests.cpp | |
| parent | Merge pull request #1205 from rnicoll/1.10-genesis-checks (diff) | |
| download | discoin-c81d7632e9dc8741ddb33e7f605f654bf3f9da09.tar.xz discoin-c81d7632e9dc8741ddb33e7f605f654bf3f9da09.zip | |
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
Diffstat (limited to 'src/test/script_P2SH_tests.cpp')
| -rw-r--r-- | src/test/script_P2SH_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |