diff options
| author | UkoeHB <37489173+UkoeHB@users.noreply.github.com> | 2020-01-08 05:21:43 -0600 |
|---|---|---|
| committer | koe <ukoe@protonmail.com> | 2020-01-09 09:11:09 -0600 |
| commit | 02224e714d7e3ca0d07416b5882ae0cfc92900f2 (patch) | |
| tree | e6f1120f8eb59d6e1ebc95f4bc68c1ed39f548ee /utils/python-rpc/framework | |
| parent | 996fa781965887e2b52469234f8cc338b381fe69 (diff) | |
| download | monzero-core-02224e714d7e3ca0d07416b5882ae0cfc92900f2.tar.gz monzero-core-02224e714d7e3ca0d07416b5882ae0cfc92900f2.tar.xz monzero-core-02224e714d7e3ca0d07416b5882ae0cfc92900f2.zip | |
Fix check_fee() discrepancy.
M100 = max{300kb, min{100block_median, m_long_term_effective_median_block_weight}}
not
M100 = max{300kb, m_long_term_effective_median_block_weight}
Fix base reward in get_dynamic_base_fee_estimate().
get_dynamic_base_fee_estimate() should match check_fee()
Fee is calculated based on block reward, and the reward penalty takes into account 0.5*max_block_weight (both before and after HF_VERSION_EFFECTIVE_SHORT_TERM_MEDIAN_IN_PENALTY).
Moved median calculation according to best practice of 'keep definitions close to where they are used'.
Diffstat (limited to 'utils/python-rpc/framework')
0 files changed, 0 insertions, 0 deletions
