-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
code cleanupImprovements to make the code clean and more readable.Improvements to make the code clean and more readable.good first issueGood for newcomersGood for newcomers
Description
Rationale
Staker value is fetched in https://github.com/razor-network/razor-go/blob/33bdf45d066526da1eaa2ac4da8e7f92e5d2f7e2/cmd/vote.go#L154
But while calling HandleCommit it is again fetched, increasing the number of RPC call.
https://github.com/razor-network/razor-go/blob/33bdf45d066526da1eaa2ac4da8e7f92e5d2f7e2/cmd/vote.go#L279
This can be avoided if we pass staker instead of stakerId to the HandleCommit function.
Implementation
Pass staker instead of stakerId and modify the HandleCommit function accordingly.
Metadata
Metadata
Assignees
Labels
code cleanupImprovements to make the code clean and more readable.Improvements to make the code clean and more readable.good first issueGood for newcomersGood for newcomers