Skip to content

fix(cli): require check-holdings to run as the --admin party - #1232

Draft
JohnChangUK wants to merge 1 commit into
feat/link-check-holdingsfrom
fix/require-check-holdings-to-run
Draft

JohnChangUK wants to merge 1 commit into
feat/link-check-holdingsfrom
fix/require-check-holdings-to-run

Conversation

@JohnChangUK

Copy link
Copy Markdown
Collaborator

Description

check-holdings now fails before reading the ledger when the configured party is not the --admin party. Only the registrar is a stakeholder of every registry holding, so a run as any other party sees only part of them and could pass clean.

  • checkHoldings.go: compare b.Participant.PartyID with --admin after resolving the participant and return an error on mismatch.

Not counted: golangci-lint run also fails before the change; go build ./... passed in CI, a dependency does not build here. Checked: make upgrade-check, make compile-contracts, make generate-bindings, make gomodtidy, make gomodtidy, make go-generate, make mocks, make inspect-dars

This branch has not been deployed

No deployments
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.

1 participant