diff options
| author | Ross Nicoll <[email protected]> | 2021-05-29 09:32:55 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2021-05-30 22:12:51 +0100 |
| commit | 4fea2ce46877fdf754dc9e22d1e8b3830f5919bd (patch) | |
| tree | c784707358fa06965cacf0ee90752fcbf82402ef /src/wallet/test | |
| parent | Merge pull request #1977 from rnicoll/1.21-difficulty (diff) | |
| download | discoin-4fea2ce46877fdf754dc9e22d1e8b3830f5919bd.tar.xz discoin-4fea2ce46877fdf754dc9e22d1e8b3830f5919bd.zip | |
Add Dogecoin block subsidies
Diffstat (limited to 'src/wallet/test')
| -rw-r--r-- | src/wallet/test/wallet_tests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index f0682fc97..d1c467888 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -147,7 +147,8 @@ BOOST_FIXTURE_TEST_CASE(scan_for_wallet_transactions, TestChain240Setup) BOOST_CHECK_EQUAL(result.last_failed_block, oldTip->GetBlockHash()); BOOST_CHECK_EQUAL(result.last_scanned_block, newTip->GetBlockHash()); BOOST_CHECK_EQUAL(*result.last_scanned_height, newTip->nHeight); - BOOST_CHECK_EQUAL(wallet.GetBalance().m_mine_immature, 25 * COIN); + // Dogecoin: Scaled up by 10,000 + BOOST_CHECK_EQUAL(wallet.GetBalance().m_mine_immature, 250000 * COIN); } // Prune the remaining block file. @@ -339,7 +340,8 @@ BOOST_FIXTURE_TEST_CASE(coin_mark_dirty_immature_credit, TestChain240Setup) // credit amount is calculated. wtx.MarkDirty(); BOOST_CHECK(spk_man->AddKeyPubKey(coinbaseKey, coinbaseKey.GetPubKey())); - BOOST_CHECK_EQUAL(wtx.GetImmatureCredit(), 25*COIN); + // Dogecoin: Scaled up by 10,000 + BOOST_CHECK_EQUAL(wtx.GetImmatureCredit(), 250000*COIN); } static int64_t AddTx(ChainstateManager& chainman, CWallet& wallet, uint32_t lockTime, int64_t mockTime, int64_t blockTime) |