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

GREEN-56 check inp object does not have extra fields in validateTypes function #19

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

akirapham
Copy link
Contributor

https://linear.app/shm/issue/GREEN-56/task-add-the-value-exist-check-extra-validation-in-the-data-cycles

Fix: check inp object does not have extra fields in validateTypes function

Copy link

linear bot commented May 8, 2024

GREEN-56 Task: Add the value exist check/ extra validation in the ‘DATA’ ( cycles, receipts, accounts ) forwarded from the consensors

Archivers accept the data (cycles, receipts, accounts) forwarded from the subscribed consensors with the ‘DATA’ event.

https://gitlab.com/shardus/archive/archive-server/-/blob/e5110457d5eda701d408ce30a850bd85c1025239/src/Data/Data.ts#L134

Add the validation steps in the data received to protect the archiver to crash.

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