Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
Remove subnet field from Validator struct
Browse files Browse the repository at this point in the history
  • Loading branch information
sergefdrv committed Oct 6, 2022
1 parent 4c774c2 commit 2baab6e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ impl State {
&& (self.consensus != ConsensusType::Delegated || self.validator_set.len() < 1)
{
self.validator_set.push(Validator {
subnet: SubnetID::new(&self.parent_id, Address::new_id(sdk::message::receiver())),
addr: addr.clone(),
net_addr: String::from(net_addr),
});
Expand Down
1 change: 0 additions & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pub const TESTING_ID: u64 = 339;

#[derive(Clone, Debug, Serialize_tuple, Deserialize_tuple, PartialEq)]
pub struct Validator {
pub subnet: SubnetID,
pub addr: Address,
pub net_addr: String,
}
Expand Down

0 comments on commit 2baab6e

Please sign in to comment.