@@ -60,7 +60,7 @@ class sign_state
6060 {
6161 authority initial_auth;
6262 if constexpr (IS_TRACED ) {
63- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 1" );
63+ FC_ASSERT (tracer && " check_authority 1" , " check_authority: tracer is null " , ( " id " , id) );
6464 try
6565 {
6666 initial_auth = get_current_authority ( id );
@@ -78,7 +78,7 @@ class sign_state
7878 if ( approved_by.find (id) != approved_by.end () )
7979 {
8080 if constexpr (IS_TRACED ) {
81- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 2" );
81+ FC_ASSERT (tracer && " check_authority 2" , " check_authority: tracer is null " , ( " id " , id) );
8282 tracer->on_approved_authority ( id, initial_auth.weight_threshold );
8383 }
8484
@@ -93,7 +93,7 @@ class sign_state
9393 bool success = check_authority_impl ( initial_auth, 0 );
9494
9595 if constexpr (IS_TRACED ) {
96- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 3" );
96+ FC_ASSERT (tracer && " check_authority 3" , " check_authority: tracer is null " , ( " id " , id) );
9797 // TODO: Provide appropriate set of flags.
9898 tracer->on_root_authority_finish (success, 0 );
9999 }
@@ -108,7 +108,7 @@ class sign_state
108108 bool check_authority ( const authority& auth, const string& id, const string& role )
109109 {
110110 if constexpr (IS_TRACED ) {
111- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 4" );
111+ FC_ASSERT (tracer && " check_authority 4" , " check_authority: tracer is null " , ( " id " , id) );
112112 tracer->set_role (role);
113113 tracer->on_root_authority_start (id, auth.weight_threshold , 0 );
114114 }
@@ -119,7 +119,7 @@ class sign_state
119119 bool success = check_authority_impl ( auth, 0 );
120120
121121 if constexpr (IS_TRACED ) {
122- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 5" );
122+ FC_ASSERT (tracer && " check_authority 5" , " check_authority: tracer is null " , ( " id " , id) );
123123 // TODO: Provide appropriate set of flags.
124124 tracer->on_root_authority_finish (success, 0 );
125125 }
@@ -171,7 +171,7 @@ class sign_state
171171 size_t membership = 0 ;
172172
173173 if constexpr (IS_TRACED ) {
174- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 6" );
174+ FC_ASSERT (tracer && " check_authority 6" );
175175 if ( auth.key_auths .empty () && auth.account_auths .empty () )
176176 tracer->on_empty_auth ();
177177 }
@@ -191,7 +191,7 @@ class sign_state
191191 total_weight += k.second ;
192192
193193 if constexpr (IS_TRACED ) {
194- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 7" );
194+ FC_ASSERT (tracer && " check_authority 7" );
195195 tracer->on_matching_key (k.first , k.second , auth.weight_threshold , depth,
196196 total_weight >= auth.weight_threshold );
197197 }
@@ -205,7 +205,7 @@ class sign_state
205205 }
206206
207207 if constexpr (IS_TRACED ) {
208- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 8" );
208+ FC_ASSERT (tracer && " check_authority 8" );
209209 tracer->on_missing_matching_key ();
210210 }
211211
@@ -216,7 +216,7 @@ class sign_state
216216 if ( depth == limits.recursion )
217217 {
218218 if constexpr (IS_TRACED ) {
219- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 9" );
219+ FC_ASSERT (tracer && " check_authority 9" );
220220 tracer->on_recursion_depth_limit_exceeded ();
221221 }
222222
@@ -226,7 +226,7 @@ class sign_state
226226 if ( limits.account_auths > 0 && account_auth_count >= limits.account_auths )
227227 {
228228 if constexpr (IS_TRACED ) {
229- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 10" );
229+ FC_ASSERT (tracer && " check_authority 10" );
230230 tracer->on_account_processing_limit_exceeded ();
231231 }
232232
@@ -237,7 +237,7 @@ class sign_state
237237
238238 authority account_auth;
239239 if constexpr (IS_TRACED ) {
240- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 11" );
240+ FC_ASSERT (tracer && " check_authority 11" );
241241 try
242242 {
243243 account_auth = get_current_authority ( a.first );
@@ -260,21 +260,21 @@ class sign_state
260260 if ( total_weight >= auth.weight_threshold )
261261 {
262262 if constexpr (IS_TRACED ) {
263- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 12" );
263+ FC_ASSERT (tracer && " check_authority 12" );
264264 tracer->on_leaving_account_entry ( a.second , true /* parent_threshold_reached*/ );
265265 }
266266 return true ;
267267 }
268268 }
269269 if constexpr (IS_TRACED ) {
270- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 13" );
270+ FC_ASSERT (tracer && " check_authority 13" );
271271 tracer->on_leaving_account_entry ( success ? a.second : 0 , false /* parent_threshold_reached*/ );
272272 }
273273 }
274274 else
275275 {
276276 if constexpr (IS_TRACED ) {
277- HIVE_PROTOCOL_AUTHORITY_ASSERT (tracer && " check_authority 14" );
277+ FC_ASSERT (tracer && " check_authority 14" );
278278 tracer->on_approved_authority ( a.first , a.second );
279279 }
280280
0 commit comments