Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

[Error] json: cannot unmarshal number #3

Closed
olajoshal opened this issue Feb 7, 2018 · 4 comments
Closed

[Error] json: cannot unmarshal number #3

olajoshal opened this issue Feb 7, 2018 · 4 comments
Assignees
Labels

Comments

@olajoshal
Copy link

Block index: 256818 [Error] json: cannot unmarshal number -1703168784 into Go struct field Tx.ver of type uint64

Block index: 124724 [Error] json: cannot unmarshal number -1 into Go struct field Block.fee of type uint64

How can i resolve these errors?

Thank you

@xorcare xorcare self-assigned this Feb 8, 2018
@xorcare
Copy link
Owner

xorcare commented Feb 8, 2018

Hi! This issue occurs because of errors in the package blockchain (https://git.io/v5dN0). The problem fixed now works correctly.

@xorcare xorcare added the bug label Feb 8, 2018
@xorcare
Copy link
Owner

xorcare commented Feb 8, 2018

Also to fix the error, you need to locally update the package: github.com/vasilyukvasiliy/blockchain
Command:

go get -u github.com/vasilyukvasiliy/blockchain

@olajoshal
Copy link
Author

Thank you!
After I updated the package, the previously mentioned blocks were parsed successfully.
Unfortunately there are similar error messages:
Block index: 337877 [Error] json: cannot unmarshal number -1 into Go struct field Tx.lock_time of type uint64
Block index: 447402 [Error] json: cannot unmarshal number -2058925319 into Go struct field Tx.lock_time of type uint64

@xorcare
Copy link
Owner

xorcare commented Feb 9, 2018

Fixed bugs, if there are new write this!

@xorcare xorcare closed this as completed Feb 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants