Skip to content

Commit

Permalink
remove no-auto-inital-register in favour of opening a new PR
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbondi committed Feb 15, 2023
1 parent 60135ea commit b3d0163
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions applications/tari_validator_node/src/registration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,6 @@ async fn handle_epoch_changed(
node_identity: &NodeIdentity,
epoch_manager: &EpochManagerHandle,
) -> Result<(), AutoRegistrationError> {
if epoch_manager.last_registration_epoch().await?.is_none() {
info!(
target: LOG_TARGET,
"📋️ Validator has never registered. Auto-registration will only occur after initial registration."
);
return Ok(());
}

let remaining_epochs = epoch_manager.remaining_registration_epochs().await?.unwrap_or(Epoch(0));
if remaining_epochs.is_zero() {
let wallet_client = GrpcWalletClient::new(config.validator_node.wallet_grpc_address.unwrap_or_else(|| {
Expand Down

0 comments on commit b3d0163

Please sign in to comment.