@@ -115,11 +115,11 @@ def _check_block_production(
115115 ledger_state = ledger_state ,
116116 )
117117
118- # Check if the pool is minting any blocks
118+ # Check if the pool is forging any blocks
119119 blocks_made = ledger_state ["blocksCurrent" ] or {}
120- is_minting = pool_id_dec in blocks_made
120+ is_forging = pool_id_dec in blocks_made
121121
122- return epoch , is_minting
122+ return epoch , is_forging
123123
124124
125125class TestKES :
@@ -146,9 +146,9 @@ def test_expired_kes(
146146 * start local cluster instance configured with short KES period and low number of key
147147 evolutions, so KES expires soon on all pools
148148 * refresh opcert on 2 of the 3 pools, so KES doesn't expire on those 2 pools and
149- the pools keep minting blocks
149+ the pools keep forging blocks
150150 * wait for KES expiration on the selected pool
151- * check that the pool with expired KES didn't mint blocks in an epoch that followed after
151+ * check that the pool with expired KES didn't forg blocks in an epoch that followed after
152152 KES expiration
153153 * check KES period info command with an operational certificate with an expired KES
154154 * check KES period info command with operational certificates with a valid KES
@@ -167,7 +167,7 @@ def test_expired_kes(
167167 expire_pool_id_dec = helpers .decode_bech32 (expire_pool_id )
168168
169169 # Refresh opcert on all pools except of pool1, so KES doesn't expire on those pools and
170- # the pools keep minting blocks.
170+ # the pools keep forging blocks.
171171 refreshed_nodes = [
172172 f"pool{ i } " for i in range (2 , len (cluster_management .Resources .ALL_POOLS ) + 1 )
173173 ]
@@ -312,7 +312,7 @@ def _check_kes_period_info(
312312 # supposed to expire.
313313 _refresh_opcerts ()
314314
315- this_epoch , is_minting = _check_block_production (
315+ this_epoch , is_forging = _check_block_production (
316316 cluster_obj = cluster ,
317317 temp_template = temp_template ,
318318 pool_id_dec = expire_pool_id_dec ,
@@ -322,9 +322,9 @@ def _check_kes_period_info(
322322 _save_all_metrics (temp_template = f"{ temp_template } _{ this_epoch } _before_refresh" )
323323 _save_all_period_info (temp_template = f"{ temp_template } _{ this_epoch } _before_refresh" )
324324
325- # Check that the expired pool is not minting any blocks
326- assert not is_minting , (
327- f"The pool '{ expire_pool_name } ' has minted blocks in epoch { this_epoch } "
325+ # Check that the expired pool is not forging any blocks
326+ assert not is_forging , (
327+ f"The pool '{ expire_pool_name } ' has forged blocks in epoch { this_epoch } "
328328 )
329329
330330 # Refresh opcerts one more time on pools that are not supposed to expire
@@ -358,16 +358,16 @@ def test_opcert_invalid_kes_period(
358358
359359 * generate new operational certificate with `--kes-period` in the future
360360 * restart the node with the new operational certificate
361- * check that the pool is not minting any blocks
361+ * check that the pool is not forging any blocks
362362 * if network era > Alonzo
363363
364364 - generate new operational certificate with valid `--kes-period`, but counter value +2
365365 from last used operational certificate
366366 - restart the node
367- - check that the pool is not minting any blocks
367+ - check that the pool is not forging any blocks
368368
369369 * generate new operational certificate with valid `--kes-period` and restart the node
370- * check that the pool is minting blocks again
370+ * check that the pool is forging blocks again
371371 """
372372 __ : tp .Any # mypy workaround
373373 kes_period_info_errors_list = []
@@ -425,17 +425,17 @@ def test_opcert_invalid_kes_period(
425425 LOGGER .info ("Checking blocks production for 4 epochs." )
426426 this_epoch = cluster .g_query .get_epoch ()
427427 for invalid_opcert_epoch in range (4 ):
428- this_epoch , is_minting = _check_block_production (
428+ this_epoch , is_forging = _check_block_production (
429429 cluster_obj = cluster ,
430430 temp_template = temp_template ,
431431 pool_id_dec = pool_id_dec ,
432432 in_epoch = this_epoch + 1 ,
433433 )
434434 _save_metrics (pool_num = pool_num , temp_template = f"{ temp_template } _{ this_epoch } " )
435435
436- # Check that the pool is not minting any blocks
437- assert not is_minting , (
438- f"The pool '{ pool_name } ' has minted blocks in epoch { this_epoch } "
436+ # Check that the pool is not forging any blocks
437+ assert not is_forging , (
438+ f"The pool '{ pool_name } ' has forged blocks in epoch { this_epoch } "
439439 )
440440
441441 if invalid_opcert_epoch == 1 :
@@ -532,16 +532,16 @@ def test_opcert_invalid_kes_period(
532532 updated_epoch = cluster .g_query .get_epoch ()
533533 this_epoch = updated_epoch
534534 for __ in range (6 ):
535- this_epoch , is_minting = _check_block_production (
535+ this_epoch , is_forging = _check_block_production (
536536 cluster_obj = cluster ,
537537 temp_template = temp_template ,
538538 pool_id_dec = pool_id_dec ,
539539 in_epoch = this_epoch + 1 ,
540540 )
541541 _save_metrics (pool_num = pool_num , temp_template = f"{ temp_template } _{ this_epoch } " )
542542
543- # Check that the pool is minting blocks
544- if is_minting :
543+ # Check that the pool is forging blocks
544+ if is_forging :
545545 break
546546 else :
547547 try :
@@ -560,7 +560,7 @@ def test_opcert_invalid_kes_period(
560560 raise
561561
562562 msg = (
563- f"The pool '{ pool_name } ' has not minted any blocks since epoch { updated_epoch } ."
563+ f"The pool '{ pool_name } ' has not forged any blocks since epoch { updated_epoch } ."
564564 )
565565 raise AssertionError (msg )
566566
@@ -608,12 +608,12 @@ def test_update_valid_opcert(
608608
609609 * generate new operational certificate with valid `--kes-period`
610610 * copy new operational certificate to the node
611- * stop the node so the corresponding pool is not minting new blocks
612- * check `kes-period-info` while the pool is not minting blocks
611+ * stop the node so the corresponding pool is not forging new blocks
612+ * check `kes-period-info` while the pool is not forging blocks
613613 * start the node with the new operational certificate
614- * check that the pool is minting blocks again
614+ * check that the pool is forging blocks again
615615 * check that metrics reported by `kes-period-info` got updated once the pool started
616- minting blocks again
616+ forging blocks again
617617 * check `kes-period-info` with the old (replaced) operational certificate
618618 """
619619 __ : tp .Any # mypy workaround
@@ -652,12 +652,12 @@ def test_update_valid_opcert(
652652 )
653653 shutil .copy (new_opcert_file , opcert_file )
654654
655- # Stop the node so the corresponding pool is not minting new blocks
655+ # Stop the node so the corresponding pool is not forging new blocks
656656 cluster_nodes .stop_nodes ([node_name ])
657657
658658 time .sleep (10 )
659659
660- # Check kes-period-info while the pool is not minting blocks
660+ # Check kes-period-info while the pool is not forging blocks
661661 kes_period_info_new = cluster .g_query .get_kes_period_info (opcert_file )
662662 with open (f"{ temp_template } _kes_period_info_1.json" , "w" , encoding = "utf-8" ) as out_fp :
663663 json .dump (kes_period_info_new , out_fp , indent = 2 )
@@ -700,16 +700,16 @@ def test_update_valid_opcert(
700700 updated_epoch = cluster .g_query .get_epoch ()
701701 this_epoch = updated_epoch
702702 for __ in range (6 ):
703- this_epoch , is_minting = _check_block_production (
703+ this_epoch , is_forging = _check_block_production (
704704 cluster_obj = cluster ,
705705 temp_template = temp_template ,
706706 pool_id_dec = pool_id_dec ,
707707 in_epoch = this_epoch + 1 ,
708708 )
709709 _save_metrics (pool_num = pool_num , temp_template = f"{ temp_template } _{ this_epoch } " )
710710
711- # Check that the pool is minting blocks
712- if is_minting :
711+ # Check that the pool is forging blocks
712+ if is_forging :
713713 break
714714 else :
715715 try :
@@ -728,12 +728,12 @@ def test_update_valid_opcert(
728728 raise
729729
730730 msg = (
731- f"The pool '{ pool_name } ' has not minted any blocks since epoch { updated_epoch } ."
731+ f"The pool '{ pool_name } ' has not forged any blocks since epoch { updated_epoch } ."
732732 )
733733 raise AssertionError (msg )
734734
735735 # Check that metrics reported by kes-period-info got updated once the pool started
736- # minting blocks again
736+ # forging blocks again
737737 kes_period_info_updated = cluster .g_query .get_kes_period_info (opcert_file )
738738 with open (f"{ temp_template } _kes_period_info_3.json" , "w" , encoding = "utf-8" ) as out_fp :
739739 json .dump (kes_period_info_updated , out_fp , indent = 2 )
0 commit comments