-
Notifications
You must be signed in to change notification settings - Fork 205
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
Staking V4: auction list api endpoint #4068
Conversation
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.
GJ by deleting duplicated mocks
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 test passed.
@@ Log scanner @@
auction-list-api-endpoint
================================================================================
- Known Warnings 10
- New Warnings 2
- Known Errors 0
- New Errors 0
- Panics 0
================================================================================
@@ -864,6 +864,10 @@ func (n *Node) ValidatorStatisticsApi() (map[string]*state.ValidatorApiResponse, | |||
return n.processComponents.ValidatorsProvider().GetLatestValidators(), nil | |||
} | |||
|
|||
func (n *Node) AuctionListApi() ([]*common.AuctionListValidatorAPIResponse, 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.
Missing comment
Why do we need to return an error here?
continue | ||
} | ||
|
||
pubKeyBytes, err := vp.validatorPubKeyConverter.Decode(pubKey) |
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.
could have extracted L120 - L138 in a function that could have returned error and do the error handling once.
Could have better tested the internal function on all cases
# Conflicts: # epochStart/metachain/systemSCs_test.go # factory/blockProcessorCreator.go
…ion-list-api-endpoint # Conflicts: # epochStart/metachain/auctionListSelector_test.go # epochStart/metachain/systemSCs_test.go # testscommon/stakingcommon/stakingDataProviderStub.go
…ion-list-api-endpoint
implemented the first version of the auction list API endpoint