-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Bitcoin Core JSONRPC API has fields marked as 'numeric'. It is not obvious what Rust type these fields should be. We want the version specific JSON types to just work (TM). 1. We use an `i64` because its the biggest signed integer on "common" machines. 2. We use a signed integer because Core sometimes returns -1. Some fields are then converted to `rust-bitocin` types that expect a `u64` (eg sats), these are left as `u64` and we just hope Core never returns -1 for any of them.
- Loading branch information
Showing
4 changed files
with
418 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.