diff options
| author | smooth <iamjaviersmooth@gmail.com> | 2015-03-04 23:35:04 -0800 |
|---|---|---|
| committer | smooth <iamjaviersmooth@gmail.com> | 2015-03-04 23:35:04 -0800 |
| commit | 754a785ee15915c4d8d81dbd55d7005e07c6407e (patch) | |
| tree | 9148840a68ff9ca197cc29cd28bcdd9a3562def1 /src/cryptonote_core/cryptonote_basic_impl.cpp | |
| parent | c01069f35253586ac2fbc3d507c7ed3ccdd900ce (diff) | |
| download | monzero-core-754a785ee15915c4d8d81dbd55d7005e07c6407e.tar.gz monzero-core-754a785ee15915c4d8d81dbd55d7005e07c6407e.tar.xz monzero-core-754a785ee15915c4d8d81dbd55d7005e07c6407e.zip | |
minimum subsidy for mining incentives, remove unused LEGACY_FEE define
Diffstat (limited to 'src/cryptonote_core/cryptonote_basic_impl.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_basic_impl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_basic_impl.cpp b/src/cryptonote_core/cryptonote_basic_impl.cpp index a7416a7e4..f2d862e57 100644 --- a/src/cryptonote_core/cryptonote_basic_impl.cpp +++ b/src/cryptonote_core/cryptonote_basic_impl.cpp @@ -60,6 +60,10 @@ namespace cryptonote { //----------------------------------------------------------------------------------------------- bool get_block_reward(size_t median_size, size_t current_block_size, uint64_t already_generated_coins, uint64_t &reward) { uint64_t base_reward = (MONEY_SUPPLY - already_generated_coins) >> EMISSION_SPEED_FACTOR; + if (base_reward < FINAL_SUBSIDY_PER_MINUTE) + { + base_reward = FINAL_SUBSIDY_PER_MINUTE; + } //make it soft if (median_size < CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE) { |
