@@ -385,8 +385,8 @@ impl State {
385385 ) ;
386386
387387 if tracing:: enabled!( Level :: DEBUG ) {
388- registrations. iter ( ) . for_each ( |addr| debug ! ( "Registration {}" , addr) ) ;
389- deregistrations. iter ( ) . for_each ( |addr| debug ! ( "Deregistration {}" , addr) ) ;
388+ registrations. iter ( ) . for_each ( |addr| debug ! ( epoch , "Registration {}" , addr) ) ;
389+ deregistrations. iter ( ) . for_each ( |addr| debug ! ( epoch , "Deregistration {}" , addr) ) ;
390390 }
391391
392392 // Calculate reward payouts for previous epoch
@@ -734,12 +734,14 @@ impl State {
734734 if spo. pledge != old_spo. pledge
735735 || spo. cost != old_spo. cost
736736 || spo. margin != old_spo. margin
737+ || spo. reward_account != old_spo. reward_account
737738 {
738739 debug ! (
739740 epoch = spo_msg. epoch,
740741 pledge = spo. pledge,
741742 cost = spo. cost,
742743 margin = ?spo. margin,
744+ reward = %spo. reward_account,
743745 "Updated parameters for SPO {}" ,
744746 hex:: encode( id)
745747 ) ;
@@ -752,6 +754,7 @@ impl State {
752754 pledge = spo. pledge,
753755 cost = spo. cost,
754756 margin = ?spo. margin,
757+ reward = %spo. reward_account,
755758 "Registered new SPO {}" ,
756759 hex:: encode( id)
757760 ) ;
@@ -791,6 +794,7 @@ impl State {
791794
792795 /// Register a stake address, with a specified deposit if known
793796 fn register_stake_address ( & mut self , stake_address : & StakeAddress , deposit : Option < Lovelace > ) {
797+ debug ! ( "Register stake address {stake_address}" ) ;
794798 // Stake addresses can be registered after being used in UTXOs
795799 let mut stake_addresses = self . stake_addresses . lock ( ) . unwrap ( ) ;
796800 if stake_addresses. register_stake_address ( stake_address) {
@@ -819,6 +823,8 @@ impl State {
819823
820824 /// Deregister a stake address, with specified refund if known
821825 fn deregister_stake_address ( & mut self , stake_address : & StakeAddress , refund : Option < Lovelace > ) {
826+ debug ! ( "Deregister stake address {stake_address}" ) ;
827+
822828 // Check if it existed
823829 let mut stake_addresses = self . stake_addresses . lock ( ) . unwrap ( ) ;
824830 if stake_addresses. deregister_stake_address ( stake_address) {
0 commit comments