Skip to content
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

Extra protections against unvalidated access to pricing_record #5

Merged
merged 1 commit into from Jul 14, 2021

Conversation

fireice-uk
Copy link
Contributor

  • This pr adds a slightly safer mechanism for getting pricing record values. Direct access to struct members is still possible for backwards-compatibility, but discouraged.

  • Few cases where the struct was passed as a const by-value were fixed.

  • Deduplicated code handling block 821428

Copy link
Contributor

@neilcoggins neilcoggins left a comment

Choose a reason for hiding this comment

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

All looks fine.

Although instead of all of the bespoke accessor functions, I would have simply used the [] operator (which already uses check_validation()) to access all of the exchange rates, and declared the member variables as private. Then, instead of pr.get_unused1() it would simply be pr["XUSD"] (or more likely pr[source]).

@akildemir akildemir merged commit 2595204 into haven-protocol-org:develop Jul 14, 2021
akildemir pushed a commit that referenced this pull request Jan 30, 2023
multisig: fix segfault restoring encrypted multisig seed
akildemir pushed a commit that referenced this pull request Jan 30, 2023
12e7c41 Merge pull request #5 from j-berman/restore-msig-encrypted-seed (Justin Berman)
848a0c0 Fix segfault restoring encrypted multisig seed (j-berman)
401f5d9 Require user ack multisig is experimental to restore (j-berman)
fc8a5d6 multisig: fix #8537 seed restore (suggestions by @UkoeHB) (j-berman)
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.

None yet

3 participants