Skip to content

Commit 90147e6

Browse files
author
ABW
committed
fix problem of first payout being too large
When reward_fund_object was originally created during HF17, its last_update field was set to the time of creation. Now it is created during genesis and as a result last_update was far into the past on first payout resulting in wrong payout values that later caused problems with replay.
1 parent 9a25f90 commit 90147e6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libraries/chain/database_hardfork.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ void database::apply_hardfork( uint32_t hardfork )
275275

276276
modify( get_reward_fund(), [&]( reward_fund_object& rfo )
277277
{
278+
rfo.access_last_update() = head_block_time();
278279
#ifndef IS_TEST_NET
279280
rfo.access_recent_claims() = HIVE_HF_17_RECENT_CLAIMS;
280281
#endif

0 commit comments

Comments
 (0)