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

rpc/types: add missing defaults to fields #361

Merged
merged 2 commits into from
Jan 8, 2025
Merged

rpc/types: add missing defaults to fields #361

merged 2 commits into from
Jan 8, 2025

Conversation

Boog900
Copy link
Member

@Boog900 Boog900 commented Jan 7, 2025

@Boog900 Boog900 requested a review from hinto-janai January 7, 2025 03:43
@github-actions github-actions bot added the A-rpc Related to RPC. label Jan 7, 2025
Copy link
Contributor

@hinto-janai hinto-janai left a comment

Choose a reason for hiding this comment

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

Maybe worth noting that this is indirectly fixed by #355 (comment), although that may be temporary and this change is needed regardless.

rpc/types/src/bin.rs Show resolved Hide resolved
Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
@Boog900
Copy link
Member Author

Boog900 commented Jan 8, 2025

Yeah I don't like the idea of making every field have a default, I am ok with it as a temporary solution though.

Monero actually gives every field a default as well (I don't think intentionally), which has lead to problems: monero-project/monero#9570

@Boog900 Boog900 merged commit 10000b4 into main Jan 8, 2025
6 checks passed
@Boog900 Boog900 deleted the blocks_bin_fix branch January 8, 2025 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to RPC.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants