-
Notifications
You must be signed in to change notification settings - Fork 356
Store staking index in erigon db #4681
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
base: prune
Are you sure you want to change the base?
Conversation
ListFromContract(ns string, backend systemcontracts.ContractBackend) ([][]byte, []any, error) | ||
BatchFromContract(ns string, keys [][]byte, backend systemcontracts.ContractBackend) ([]any, error) | ||
} |
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.
ListFromContract(ns string, keys [][]byte, backend systemcontracts.ContractBackend) ([][]byte, []any, error)
|
||
func writeCandCenterStateToStateDB(sm protocol.StateManager, name, op, owners CandidateList) error { | ||
if _, err := sm.PutState(name, protocol.NamespaceOption(CandsMapNS), protocol.KeyOption(_nameKey)); err != nil { | ||
if _, err := sm.PutState(&name, protocol.NamespaceOption(CandsMapNS), protocol.KeyOption(_nameKey)); err != nil { |
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.
\like
|
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #(issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: