Skip to content

go/consensus/api: Deprecate GetSignerNonce #6207

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

Merged
merged 2 commits into from
May 29, 2025

Conversation

peternose
Copy link
Contributor

@peternose peternose commented May 29, 2025

The GetSignerNonce method should be deprecated and eventually removed, as it does not belong in the core consensus backend. Callers should retrieve the nonce via the account query in the staking backend instead. If this approach proves too complex, a helper method can be added to the staking backend to simplify access.

Copy link

netlify bot commented May 29, 2025

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit bf37f2c
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-oasis-core/deploys/683836207fcf1b00080edda6

@@ -337,6 +337,12 @@ func (nt *nodeTracker) Nodes(nodes []signature.PublicKey) map[core.PeerID]signat
}

func (nt *nodeTracker) trackKeymanagerNodes(ctx context.Context) {
select {
case <-nt.consensus.Synced():
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The consensus needs to be synced so that WatchStatuses method doesn't fail when the status notifier hook is executed on subscription.

@peternose peternose marked this pull request as ready for review May 29, 2025 10:56
Copy link
Member

@kostko kostko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally the "staking" service would be named "accounts".

@peternose peternose merged commit 5911b1d into master May 29, 2025
5 checks passed
@peternose peternose deleted the peternose/trivial/deprecate-get-signer-nonce branch May 29, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants