Commit 488e6db2 authored by Bartek Wrona's avatar Bartek Wrona

HF24 date set to Tuesday, 8 September 2020 14:00:00

Fixed bug in activation of DHF funds conversion leading to failed reindex.
parent 92feeec2
......@@ -61,7 +61,8 @@ long hf24_time()
#ifdef IS_TEST_NET
1588334400; /// Friday, 1 May 2020 12:00:00 GMT
#else
1593604800; // Wednesday, 1 July 2020 12:00:00 GMT
1599573600; // Tuesday, 8 September 2020 14:00:00
#endif /// IS_TEST_NET
const char* value = getenv("HIVE_HF24_TIME");
if(value != nullptr)
......
......@@ -28,7 +28,8 @@ bool sps_processor::is_maintenance_period( const time_point_sec& head_time ) con
bool sps_processor::is_daily_maintenance_period( const time_point_sec& head_time ) const
{
return db.get_dynamic_global_properties().next_daily_maintenance_time <= head_time;
/// No DHF conversion until HF24 !
return db.has_hardfork(HIVE_HARDFORK_0_24) && db.get_dynamic_global_properties().next_daily_maintenance_time <= head_time;
}
void sps_processor::remove_proposals( const time_point_sec& head_time )
......@@ -337,7 +338,7 @@ void sps_processor::record_funding( const block_notification& note )
void sps_processor::convert_funds( const block_notification& note )
{
if( !is_daily_maintenance_period( note.block.timestamp ) )
if( !is_daily_maintenance_period( note.block.timestamp ))
return;
db.modify( db.get_dynamic_global_properties(), [&]( dynamic_global_property_object& _dgpo )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment