Skip to content

Commit 67e174a

Browse files
committed
Test
1 parent 597e70e commit 67e174a

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Ticket issues
2+
#ifndef SOFTFORK_20240223_TIME
3+
#define SOFTFORK_20240223_TIME (fc::time_point_sec( 1708660800 )) // Friday, February 23, 2024 4:00:00 UTC
4+
#define SOFTFORK_20240223_PASSED(head_block_time) (head_block_time >= SOFTFORK_20240223_TIME)
5+
#endif

libraries/chain/proposal_evaluator.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ struct proposal_operation_hardfork_visitor
262262
}
263263
void operator()(const graphene::chain::ticket_create_operation&) const {
264264
FC_ASSERT( HARDFORK_CORE_2103_PASSED(block_time), "Not allowed until hardfork 2103" );
265+
FC_ASSERT( !SOFTFORK_20240223_PASSED(block_time), "Temporarily disabled" );
265266
}
266267
void operator()(const graphene::chain::ticket_update_operation&) const {
267268
FC_ASSERT( HARDFORK_CORE_2103_PASSED(block_time), "Not allowed until hardfork 2103" );

libraries/chain/ticket_evaluator.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ void_result ticket_create_evaluator::do_evaluate(const ticket_create_operation&
3939
const auto block_time = d.head_block_time();
4040

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

4344
return void_result();
4445
} FC_CAPTURE_AND_RETHROW( (op) ) }

0 commit comments

Comments
 (0)