Added sidechain hardfork time
This commit is contained in:
parent
f616e4c755
commit
9b79928a15
3 changed files with 7 additions and 1 deletions
|
|
@ -604,7 +604,7 @@ void database::_apply_block( const signed_block& next_block )
|
|||
uint32_t skip = get_node_properties().skip_flags;
|
||||
_applied_ops.clear();
|
||||
|
||||
if( is_sidechain_fork_needed() )
|
||||
if( head_block_time() > HARDFORK_SIDECHAIN_TIME && is_sidechain_fork_needed() )
|
||||
{
|
||||
perform_sidechain_fork();
|
||||
}
|
||||
|
|
|
|||
4
libraries/chain/hardfork.d/sidechain.hf
Normal file
4
libraries/chain/hardfork.d/sidechain.hf
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// sidechain fardfork
|
||||
#ifndef HARDFORK_SIDECHAIN_TIME
|
||||
#define HARDFORK_SIDECHAIN_TIME (fc::time_point_sec( 1550000000 ))
|
||||
#endif
|
||||
|
|
@ -34,6 +34,8 @@ boost::unit_test::test_suite* init_unit_test_suite(int argc, char* argv[]) {
|
|||
if( genesis_timestamp_str != nullptr )
|
||||
{
|
||||
GRAPHENE_TESTING_GENESIS_TIMESTAMP = std::stoul( genesis_timestamp_str );
|
||||
} else {
|
||||
GRAPHENE_TESTING_GENESIS_TIMESTAMP = 1550000001;
|
||||
}
|
||||
std::cout << "GRAPHENE_TESTING_GENESIS_TIMESTAMP is " << GRAPHENE_TESTING_GENESIS_TIMESTAMP << std::endl;
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Reference in a new issue