Skip to content

Fix stack overflow by JSON module for 'BlockchainSettings' since go1.27. - #2210

Merged
nickeskov merged 1 commit into
masterfrom
fix-json-stack-overflow
Aug 26, 2026
Merged

Fix stack overflow by JSON module for 'BlockchainSettings' since go1.27.#2210
nickeskov merged 1 commit into
masterfrom
fix-json-stack-overflow

Conversation

@nickeskov

Copy link
Copy Markdown
Collaborator

This pull request updates the UnmarshalJSON method of the BlockchainSettings struct to fix a bug with how the type alias is used during JSON unmarshalling. This change ensures the method works correctly by using a non-pointer type alias and casting the receiver appropriately.

Bug fix:

  • Updated the UnmarshalJSON method in blockchain_settings.go to use a non-pointer type alias (shadowed BlockchainSettings) and cast the receiver to *shadowed, resolving issues with JSON unmarshalling.

@nickeskov nickeskov added the bug Something isn't working label Aug 26, 2026
@nickeskov
nickeskov merged commit e4fbce9 into master Aug 26, 2026
22 checks passed
@nickeskov
nickeskov deleted the fix-json-stack-overflow branch August 26, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants