Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flo-cli fails to parse select transactions #16

Open
bitspill opened this issue Nov 20, 2019 · 3 comments
Open

Flo-cli fails to parse select transactions #16

bitspill opened this issue Nov 20, 2019 · 3 comments

Comments

@bitspill
Copy link
Member

flo-cli getrawtransaction bab76ed38ae19ad7e0ca758f99695883d6498a896eb456cf2aa10b10e54bb872 1
error: couldn't parse reply from server
@bitspill
Copy link
Member Author

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

@bitspill
Copy link
Member Author

bitspill commented Nov 20, 2019

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

image

@freelancerstudio
Copy link

freelancerstudio commented Oct 18, 2020

deamon fold encounter an issue

addrman.h:321: void CAddrMan...= nNew' failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants