-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(torture): use OrdMap
to track the state
#701
Conversation
6270d32
to
51ef2e0
Compare
9adaa35
to
28037e3
Compare
51ef2e0
to
7d8599d
Compare
28037e3
to
6fc7ac0
Compare
7d8599d
to
bacfdd6
Compare
6fc7ac0
to
1763dda
Compare
bacfdd6
to
2cc1b70
Compare
1763dda
to
a3c5384
Compare
2cc1b70
to
3bbea42
Compare
2b03934
to
323a7ba
Compare
3bbea42
to
3eef3cc
Compare
if self.mentions.is_empty() || self.rng.gen_bool(self.biases.new_key) { | ||
let mut key = [0; 32]; | ||
let mut key = [0; 32]; | ||
if !self.committed.state.is_empty() && self.rng.gen_bool(self.biases.delete) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we want to attempt a removal on an empty state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid deleting non-existing keys!
But now that I'm thinking about it, do we really not want to attempt to delete non-existing keys?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, exactly.
3eef3cc
to
544b136
Compare
No description provided.