You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is long standing behavior with nodeos' JSON formatting that has existed since 1.0: numbers 2^32 or greater are quoted, while numbers less than that are not. It'll be formatted this way on just about any JSON response, not just db_size
Obviously this does make it more difficult to handle the JSON returned from nodeos since you don't know in advance what type a value will be for a response that is a number.
With modern tech it might make sense to never quote numbers and force any receiver to parse them as bigints if they want proper behavior. But such a change would need to be done carefully for compatibility reasons.
It appears that after v5.0.0 the used_bytes number does not include "quotes" after requesting
/v1/db_size/get
"free_bytes":"13532691840","used_bytes":3647176320,"size":"17179868160","indices"
The text was updated successfully, but these errors were encountered: