The current use of Boost ptree in RPC is problematic for several reasons:
Challenges/notes:
This replaces a few related issues.
@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 out of curiosity, would your Go client deal with both
historybeing an empty array [] andhistorynot 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.
In V22 flatbuffers' JSON support takes over ptree with RPC 2.0. Migration to the new RPC version will remove this issue.
Most helpful comment
Empty array is expected for address with 0 transactions, instead history returns different
type. Expecting to havehistoryproperty no matter amount of transactions would be ideal.