nanocurrency / nano-node

Nano is digital currency. Its ticker is: XNO and its currency symbol is: Ӿ
https://nano.org
BSD 3-Clause "New" or "Revised" License
3.48k stars 787 forks source link

Replace JSON library #1871

Open cryptocode opened 5 years ago

cryptocode commented 5 years ago

The current use of Boost ptree in RPC is problematic for several reasons:

Challenges/notes:

This replaces a few related issues.

kolya182 commented 4 years ago

Awaiting for a fix https://github.com/trustwallet/blockatlas/blob/master/platform/nano/model.go#L18

cryptocode commented 4 years ago

@kolya182 out of curiosity, would your Go client deal with both history being an empty array [] and history not being present at all in the JSON?

kolya182 commented 4 years ago

@kolya182 out of curiosity, would your Go client deal with both history being an empty array [] and history not being present at all in the JSON?

Empty array is expected for address with 0 transactions, instead history returns different type. Expecting to have history property no matter amount of transactions would be ideal.

zhyatt commented 4 years ago

In V22 flatbuffers' JSON support takes over ptree with RPC 2.0. Migration to the new RPC version will remove this issue.

codesoap commented 3 years ago

Migration to the new RPC version will remove this issue.

Is there any ticket where I can check the progress on this?

zhyatt commented 3 years ago

Reopening as this is being considered in a RPC v2.

@codesoap This can be tracked as part of #2467 and is related to #3348