diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-06 14:23:26 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-16 19:21:45 +0000 |
commit | 31d80027b5cc59b48205334a9e361c6a75099592 (patch) | |
tree | a0d963aa0411b9d0f7c2738d81b90d06b09e49d4 /src/cryptonote_core/blockchain.cpp | |
parent | blockchain: remove "0 is height" shortcut from get_output_distribution (diff) | |
download | monero-31d80027b5cc59b48205334a9e361c6a75099592.tar.xz |
tests: add unit tests for get_output_distribution
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 798f67e09..e80e3f66c 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1805,6 +1805,7 @@ bool Blockchain::get_output_distribution(uint64_t amount, uint64_t from_height, case STAGENET: start_height = stagenet_hard_forks[3].height; break; case TESTNET: start_height = testnet_hard_forks[3].height; break; case MAINNET: start_height = mainnet_hard_forks[3].height; break; + case FAKECHAIN: start_height = 0; break; default: return false; } } |