Skip to content

Conversation

@shargon
Copy link
Member

@shargon shargon commented Sep 18, 2023

Related to: #2950

The default value of JsonReaderOptions.MaxDepth is 64 as mentioned in:

Gets or sets the maximum depth allowed when reading JSON, with the default (i.e. 0) indicating a max depth of 64.

We shouldn't have more than that

@shargon shargon requested a review from superboyiii September 18, 2023 10:34
@shargon shargon changed the title Reduce max depth Reduce json max depth default value Sep 18, 2023
vncoelho
vncoelho approved these changes Sep 18, 2023
@Jim8y
Copy link
Contributor

Jim8y commented Sep 18, 2023

if (!IsHardforkEnabled(Hardfork.HF_Basilisk)) maybe LOL, kinda allegic to the change now.

@vang1ong7ang
Copy link
Contributor

vang1ong7ang commented Sep 18, 2023

if (!IsHardforkEnabled(Hardfork.HF_Basilisk)) maybe LOL, kinda allegic to the change now.

it would be cynocephalus's turn there is no fork

@vncoelho
Copy link
Member

Hahahaha

This change is necessary because of the limit, anyway.
This should be moved forward.

I do not believe it solves the issue.

@roman-khimov roman-khimov mentioned this pull request Sep 18, 2023
@shargon
Copy link
Member Author

shargon commented Sep 19, 2023

@superboyiii could you test it? I think that no HF will be needed

@superboyiii
Copy link
Member

@superboyiii could you test it? I think that no HF will be needed

Sure

Copy link
Member

@superboyiii superboyiii left a comment

Choose a reason for hiding this comment

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

Tested OK. Data is compatible. @shargon

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.

6 participants