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.GetStatus return error when block_sync = null #80

Open
lucky777strike opened this issue Mar 12, 2024 · 1 comment
Open

rpc.GetStatus return error when block_sync = null #80

lucky777strike opened this issue Mar 12, 2024 · 1 comment

Comments

@lucky777strike
Copy link

Hello, rpc.GetStatus return error
failed to unmarshal rpc result, details: json: cannot unmarshal object into Go struct field .block_sync.forward of type string"

when node send jsone like this

... "block_sync": { "historical": null, "forward": null }

@koltsov-iv
Copy link
Member

Hi @lucky777strike, sorry but I can't reproduce with this data. We have a test with the same block_sync values, and it works fine.
test: tests/rpc/rpc_client_test.go:400
fixture: tests/data/rpc_response/get_status.json

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

No branches or pull requests

2 participants