Open bitspill opened 4 years ago
Location of error: https://github.com/floblockchain/flo/blob/v0.15.2.1/src/bitcoin-cli.cpp#L279
The CLI attempts to decode the JSON received via RPC before printing to the console, however it appears the parsing by univalue [1][2] doesn't like something about the JSON, presumably the floData encoding (or lack thereof)
[1] https://github.com/jgarzik/univalue [2] https://github.com/floblockchain/flo/tree/v0.15.2.1/src/univalue
Utilizing a few online services to inspect the hex I believe the issue comes down to UniValue expecting UTF-8 or Unicode and rejecting the floData for not being such
https://github.com/jgarzik/univalue This class is aligned with the JSON standard, RFC 7159.
https://tools.ietf.org/html/rfc7159.html#section-8
However, the ABNF in this specification allows member names and
string values to contain bit sequences that cannot encode Unicode
characters [...] The behavior of software that
receives JSON texts containing such values is unpredictable; for
example, implementations might return different values for the length
of a string value or even suffer fatal runtime exceptions.
https://hexed.it/ https://onlineutf8tools.com/convert-hexadecimal-to-utf8 http://www.endmemo.com/unicode/unicodeconverter.php
floData hex: 76a914adcfd792793fb204ec4e8cf2d0215fea6963b97388ac
deamon fold encounter an issue
addrman.h:321: void CAddrMan...= nNew' failed.