diff --git a/zebra-rpc/Cargo.toml b/zebra-rpc/Cargo.toml index e00e1b9cb9c..d06f93a94c9 100644 --- a/zebra-rpc/Cargo.toml +++ b/zebra-rpc/Cargo.toml @@ -43,7 +43,7 @@ jsonrpc-http-server = "18.0.0" num_cpus = "1.14.0" # zebra-rpc needs the preserve_order feature in serde_json, which is a dependency of jsonrpc-core -serde_json = { version = "1.0.89", features = ["preserve_order"] } +serde_json = { version = "1.0.89", features = ["preserve_order", "arbitrary_precision"] } indexmap = { version = "1.9.2", features = ["serde"] } tokio = { version = "1.23.0", features = ["time", "rt-multi-thread", "macros", "tracing"] } diff --git a/zebra-rpc/src/methods/tests/snapshot/snapshots/get_mining_info@mainnet_10.snap b/zebra-rpc/src/methods/tests/snapshot/snapshots/get_mining_info@mainnet_10.snap index b218bc58f67..67ffde393c4 100644 --- a/zebra-rpc/src/methods/tests/snapshot/snapshots/get_mining_info@mainnet_10.snap +++ b/zebra-rpc/src/methods/tests/snapshot/snapshots/get_mining_info@mainnet_10.snap @@ -5,5 +5,6 @@ expression: get_mining_info { "networksolps": 2, "networkhashps": 2, - "chain": "Mainnet" + "chain": "main", + "testnet": false } diff --git a/zebra-rpc/src/methods/tests/snapshot/snapshots/get_mining_info@testnet_10.snap b/zebra-rpc/src/methods/tests/snapshot/snapshots/get_mining_info@testnet_10.snap index b2637ee965d..fc728a8540f 100644 --- a/zebra-rpc/src/methods/tests/snapshot/snapshots/get_mining_info@testnet_10.snap +++ b/zebra-rpc/src/methods/tests/snapshot/snapshots/get_mining_info@testnet_10.snap @@ -5,5 +5,6 @@ expression: get_mining_info { "networksolps": 0, "networkhashps": 0, - "chain": "Testnet" + "chain": "test", + "testnet": true }