-
Notifications
You must be signed in to change notification settings - Fork 58
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
Replace json_spirit with UniValue #236
Conversation
I can't create a raw transaction:
Note how rpcmisc.cpp has:
but rpcrawtransaction.cpp has:
I think they should probably both have the ! at the start of the 2nd line there. |
In signrawtransaction:
That should be !p.isObject(), right? |
I updated l0rdicon@7bc97ed with the mistakes you picked out. |
signrawtransaction seems OK if I add the ! I mentioned in my previous comment:
|
I just got 'bit' by this change, in testing. I have a script which uses Previously the input to the
but with this pull request it has changed to look like this:
Note there's no longer a space before the colon, and so the I don't know if anyone else is processing "clamd" output with shell scripts, but it would be better if this spirit -> univalue change was as transparent as possible for the end user. |
Absolutely. There shouldn't be any changes in the output in my opinion I'll look into this On Tue, Oct 13, 2015 at 10:20 PM, Chris Moore notifications@github.com
|
compatible with previous rpc responses.
I updated the response to include the separator |
listunspent is showing stuff like:
Note the amount is in scientific notation. I'm pretty sure it always used to be in decimal notation, even if it was for a single satoshi. |
I'm unsure why your listupsent doesn't have the spacing between the separator.. I'll need to look deeper into that if it persists. The update to ValueToAmount should fix any issues with the numbers being reported wrong. |
Oh, that's because I haven't rebuilt since I first saw your pull request. I On Thu, Oct 15, 2015 at 11:26 PM, l0rdicon notifications@github.com wrote:
|
Makes sense, I was wondering if that was the case about you not having That amount should be fixed with that most recent update, and the spacing On Fri, Oct 16, 2015 at 4:46 AM, Chris Moore notifications@github.com
|
Looks good now I've rebuilt. Before:
After:
|
Replace json_spirit with UniValue
ref: bitcoin/bitcoin#6121
Includes all the recent commits to UniValue up the bitcoin master tree as of 10/09/2015