Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
abitmore committed Feb 23, 2024
1 parent 597e70e commit 67e174a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/chain/hardfork.d/20240223.hf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Ticket issues
#ifndef SOFTFORK_20240223_TIME
#define SOFTFORK_20240223_TIME (fc::time_point_sec( 1708660800 )) // Friday, February 23, 2024 4:00:00 UTC
#define SOFTFORK_20240223_PASSED(head_block_time) (head_block_time >= SOFTFORK_20240223_TIME)
#endif
1 change: 1 addition & 0 deletions libraries/chain/proposal_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ struct proposal_operation_hardfork_visitor
}
void operator()(const graphene::chain::ticket_create_operation&) const {
FC_ASSERT( HARDFORK_CORE_2103_PASSED(block_time), "Not allowed until hardfork 2103" );
FC_ASSERT( !SOFTFORK_20240223_PASSED(block_time), "Temporarily disabled" );
}
void operator()(const graphene::chain::ticket_update_operation&) const {
FC_ASSERT( HARDFORK_CORE_2103_PASSED(block_time), "Not allowed until hardfork 2103" );
Expand Down
1 change: 1 addition & 0 deletions libraries/chain/ticket_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ void_result ticket_create_evaluator::do_evaluate(const ticket_create_operation&
const auto block_time = d.head_block_time();

FC_ASSERT( HARDFORK_CORE_2103_PASSED(block_time), "Not allowed until hardfork 2103" );
FC_ASSERT( !SOFTFORK_20240223_PASSED(block_time), "Temporarily disabled" );

return void_result();
} FC_CAPTURE_AND_RETHROW( (op) ) }
Expand Down

0 comments on commit 67e174a

Please sign in to comment.