Skip to content

Commit

Permalink
Update dot/peerset/peerstate.go
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
  • Loading branch information
kishansagathiya and qdm12 committed Dec 1, 2021
1 parent 50c66c2 commit dba4a57
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dot/peerset/peerstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ type node struct {
rep Reputation
}

// newNode method to create a node with 0 Reputation at starting.
// Here, n is number of sets.
// newNode creates a node with n number of sets and 0 reputation.
func newNode(n int) *node {
now := time.Now()
sets := make([]MembershipState, n)
Expand Down

0 comments on commit dba4a57

Please sign in to comment.