@@ -308,9 +308,10 @@ impl<E: EthSpec> CustodyContext<E> {
308308 debug ! (
309309 info = "new CGC will be effective from the next epoch" ,
310310 ?node_custody_type,
311+ old_cgc = old_custody_group_count,
311312 new_cgc = validator_custody_at_head,
312313 effective_epoch = %effective_epoch,
313- "Node custody type change caused in a custody count increase" ,
314+ "Node custody type change caused a custody count increase" ,
314315 ) ;
315316 } else if cgc_from_cli < validator_custody_at_head {
316317 // We don't currently support reducing CGC for simplicity.
@@ -643,7 +644,7 @@ mod tests {
643644 /// Helper function to test CGC increases when switching node custody types.
644645 /// Verifies that CustodyCountChanged is returned with correct values and
645646 /// that custody_group_count_at_epoch returns appropriate values for current and next epoch.
646- fn assert_cgc_increase_on_custody_type_switch (
647+ fn assert_custody_type_switch_increases_cgc (
647648 persisted_cgc : u64 ,
648649 target_node_custody_type : NodeCustodyType ,
649650 expected_new_cgc : u64 ,
@@ -719,7 +720,7 @@ mod tests {
719720
720721 /// Helper function to test CGC reduction prevention when switching node custody types.
721722 /// Verifies that CGC stays at the persisted value and CustodyCountChanged is not returned.
722- fn assert_cgc_unchanged_on_custody_type_switch (
723+ fn assert_custody_type_switch_unchanged_cgc (
723724 persisted_cgc : u64 ,
724725 target_node_custody_type : NodeCustodyType ,
725726 current_epoch : Epoch ,
@@ -1195,7 +1196,7 @@ mod tests {
11951196 let current_epoch = Epoch :: new ( 10 ) ;
11961197 let supernode_cgc = spec. number_of_custody_groups ;
11971198
1198- assert_cgc_increase_on_custody_type_switch (
1199+ assert_custody_type_switch_increases_cgc (
11991200 0 ,
12001201 NodeCustodyType :: Supernode ,
12011202 supernode_cgc,
@@ -1261,7 +1262,7 @@ mod tests {
12611262 let spec = E :: default_spec ( ) ;
12621263 let supernode_cgc = spec. number_of_custody_groups ;
12631264
1264- assert_cgc_unchanged_on_custody_type_switch (
1265+ assert_custody_type_switch_unchanged_cgc (
12651266 supernode_cgc,
12661267 NodeCustodyType :: Fullnode ,
12671268 Epoch :: new ( 0 ) ,
@@ -1277,7 +1278,7 @@ mod tests {
12771278 let supernode_cgc = spec. number_of_custody_groups ;
12781279 let current_epoch = Epoch :: new ( 10 ) ;
12791280
1280- assert_cgc_unchanged_on_custody_type_switch (
1281+ assert_custody_type_switch_unchanged_cgc (
12811282 supernode_cgc,
12821283 NodeCustodyType :: SemiSupernode ,
12831284 current_epoch,
@@ -1294,7 +1295,7 @@ mod tests {
12941295 let semi_supernode_cgc = spec. number_of_custody_groups / 2 ;
12951296 let current_epoch = Epoch :: new ( 10 ) ;
12961297
1297- assert_cgc_increase_on_custody_type_switch (
1298+ assert_custody_type_switch_increases_cgc (
12981299 persisted_cgc,
12991300 NodeCustodyType :: SemiSupernode ,
13001301 semi_supernode_cgc,
@@ -1312,7 +1313,7 @@ mod tests {
13121313 let supernode_cgc = spec. number_of_custody_groups ;
13131314 let current_epoch = Epoch :: new ( 10 ) ;
13141315
1315- assert_cgc_increase_on_custody_type_switch (
1316+ assert_custody_type_switch_increases_cgc (
13161317 semi_supernode_cgc,
13171318 NodeCustodyType :: Supernode ,
13181319 supernode_cgc,
@@ -1330,7 +1331,7 @@ mod tests {
13301331 let supernode_cgc = spec. number_of_custody_groups ;
13311332 let current_epoch = Epoch :: new ( 10 ) ;
13321333
1333- assert_cgc_increase_on_custody_type_switch (
1334+ assert_custody_type_switch_increases_cgc (
13341335 persisted_cgc,
13351336 NodeCustodyType :: Supernode ,
13361337 supernode_cgc,
0 commit comments