-
Notifications
You must be signed in to change notification settings - Fork 118
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
batch upload known validators to Redis #375
batch upload known validators to Redis #375
Conversation
use HMSET instead of HSET to upload known validators to Redis
Codecov Report
π£ This organization is not using Codecovβs GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #375 +/- ##
==========================================
+ Coverage 19.92% 22.57% +2.65%
==========================================
Files 21 21
Lines 4056 4110 +54
==========================================
+ Hits 808 928 +120
+ Misses 3145 3055 -90
- Partials 103 127 +24
Flags with carried forward coverage won't be shown. Click here to find out more.
|
# Conflicts: # services/housekeeper/housekeeper.go
Asking for a bit of patience, as we're working on other important PRs to get merged first (in particular #380) |
Reading up, it seems HMSET is deprecated? https://redis.io/commands/hmset/ |
services/housekeeper/housekeeper.go
Outdated
@@ -133,6 +133,17 @@ func (hk *Housekeeper) processNewSlot(headSlot uint64) { | |||
}).Infof("updated headSlot to %d", headSlot) | |||
} | |||
|
|||
func (hk *Housekeeper) flushKnownValidators(indexPkMap map[uint64]types.PubkeyHex) { |
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.
please rename to saveKnownValidators
looks really good. left a few minor comments, and please rebase |
- HMSET=>HSET
One more thing to optimize this way would be writing validator registrations to redis:
Not sure you want to take it on, but it would be great too |
thanks! |
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.
guys i mast goo to work ...
π Summary
batch upload known validators to Redis
Use HMSET instead of HSET to upload known validators to Redis
β± Motivation and Context
Following @metachris request on #373.
β I have run these commands
make lint
make test-race
go mod tidy
CONTRIBUTING.md