-
Notifications
You must be signed in to change notification settings - Fork 33
[TECHDEBT] Change the PersistenceRWContext interface to pass paramName when getting a parameter #286
Copy link
Copy link
Closed
Labels
code healthNice to have code improvementNice to have code improvementcore starter taskGood for newcomers, but aimed at core team members though still open for everyoneGood for newcomers, but aimed at core team members though still open for everyonepersistencePersistence specific changesPersistence specific changes
Milestone
Description
Objective
Deprecate
-
GetBlocksPerSession(height int64) (int, error)
and -
GetServiceNodesPerSessionAt(height int64) (int, error)
for
-
GetParameter(paramName string, height int64) (interface, error)
Origin Document
We genericized the param setters like:
SetParam(paramName string, value interface{}) error
We need a similar pattern for getters
Goals
- Lower code footprint,
- Remove placeholder constants
- Maintain a strict pattern
Deliverable
- Code complete implementation
- Updated documentation
General issue deliverables
- Update the appropriate CHANGELOG
- Update any relevant READMEs (local and/or global)
- Update any relevant global documentation & references
- If applicable, update the source code tree explanation
- If applicable, add or update a state, sequence or flowchart diagram using mermaid
Creator: @andrewnguyen22
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
code healthNice to have code improvementNice to have code improvementcore starter taskGood for newcomers, but aimed at core team members though still open for everyoneGood for newcomers, but aimed at core team members though still open for everyonepersistencePersistence specific changesPersistence specific changes
Type
Projects
Status
Done