-
Notifications
You must be signed in to change notification settings - Fork 19
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
Feature/2124 implement ratelimit #2186
Conversation
system-tests failed.
|
1 similar comment
system-tests failed.
|
system-tests failed.
|
system-tests failed.
|
system-tests failed.
|
1 similar comment
system-tests failed.
|
blockchain/ratelimit/ratelimit.go
Outdated
@@ -57,25 +55,14 @@ func (r *Rates) NextBlock() { | |||
return | |||
} | |||
|
|||
for key := range r.entries { | |||
for key, _ := range r.entries { |
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 add the , _
? Doesn't the linter complain about this
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.
yeah, I guess this was introduced when I reverted the previous whitelist implementation
blockchain/blockchain.go
Outdated
@@ -40,6 +40,11 @@ type GenesisHandler interface { | |||
OnGenesis(genesisTime time.Time, appState []byte, validatorsPubkey [][]byte) error | |||
} | |||
|
|||
//go:generate go run github.com/golang/mock/mockgen -destination mocks/validator_topology_mock.go -package mocks code.vegaprotocol.io/vega/blockchain ValidatorTopology | |||
type ValidatorTopology interface { |
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.
This is only to pass the dependency on to the abci application, why declare the interface twice, instead of using tm.ValidatorTopology
?
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.
👍
system-tests failed.
|
system-tests failed.
|
system-tests failed.
|
692ffef
to
4867e96
Compare
No description provided.