-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates getblockheader response type to hex-encode fields, adds ToHex…
… impl for sapling::tree::Root, adds snapshot and vector tests for new RPC method, adds snapshots.
- Loading branch information
Showing
9 changed files
with
237 additions
and
2 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
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
18 changes: 18 additions & 0 deletions
18
zebra-rpc/src/methods/tests/snapshots/get_block_header_hash@mainnet_10.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot.rs | ||
expression: block | ||
--- | ||
{ | ||
"hash": "0007bc227e1c57a4a70e237cad00e7b7ce565155ab49166bc57397a26d339283", | ||
"confirmations": 10, | ||
"height": 1, | ||
"version": 4, | ||
"merkle_root": "851bf6fbf7a976327817c738c489d7fa657752445430922d94c983c0b9ed4609", | ||
"final_sapling_root": "fbc2f4300c01f0b7820d00e3347c8da4ee614674376cbc45359daa54f9b5493e", | ||
"time": 1477671596, | ||
"nonce": "7534e8cf161ff2e49d54bdb3bfbcde8cdbf2fc5963c9ec7d86aed4a67e975790", | ||
"bits": "1f07ffff", | ||
"difficulty": "0007ffff00000000000000000000000000000000000000000000000000000000", | ||
"previousblockhash": "00040fe8ec8471911baa1db1266ea15dd06b4a8a5c453883c000b031973dce08", | ||
"nextblockhash": "0002a26c902619fc964443264feb16f1e3e2d71322fc53dcb81cc5d797e273ed" | ||
} |
18 changes: 18 additions & 0 deletions
18
zebra-rpc/src/methods/tests/snapshots/get_block_header_hash@testnet_10.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot.rs | ||
expression: block | ||
--- | ||
{ | ||
"hash": "025579869bcf52a989337342f5f57a84f3a28b968f7d6a8307902b065a668d23", | ||
"confirmations": 10, | ||
"height": 1, | ||
"version": 4, | ||
"merkle_root": "f37e9f691fffb635de0999491d906ee85ba40cd36dae9f6e5911a8277d7c5f75", | ||
"final_sapling_root": "fbc2f4300c01f0b7820d00e3347c8da4ee614674376cbc45359daa54f9b5493e", | ||
"time": 1477674473, | ||
"nonce": "000056c2264c31261d597c6fcea7c5e00160cf6be1cd89ca96a0389473e50000", | ||
"bits": "2007ffff", | ||
"difficulty": "07ffff0000000000000000000000000000000000000000000000000000000000", | ||
"previousblockhash": "05a60a92d99d85997cce3b87616c089f6124d7342af37106edc76126334a2c38", | ||
"nextblockhash": "00f1a49e54553ac3ef735f2eb1d8247c9a87c22a47dbd7823ae70adcd6c21a18" | ||
} |
18 changes: 18 additions & 0 deletions
18
zebra-rpc/src/methods/tests/snapshots/get_block_header_height@mainnet_10.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot.rs | ||
expression: block | ||
--- | ||
{ | ||
"hash": "0007bc227e1c57a4a70e237cad00e7b7ce565155ab49166bc57397a26d339283", | ||
"confirmations": 10, | ||
"height": 1, | ||
"version": 4, | ||
"merkle_root": "851bf6fbf7a976327817c738c489d7fa657752445430922d94c983c0b9ed4609", | ||
"final_sapling_root": "fbc2f4300c01f0b7820d00e3347c8da4ee614674376cbc45359daa54f9b5493e", | ||
"time": 1477671596, | ||
"nonce": "7534e8cf161ff2e49d54bdb3bfbcde8cdbf2fc5963c9ec7d86aed4a67e975790", | ||
"bits": "1f07ffff", | ||
"difficulty": "0007ffff00000000000000000000000000000000000000000000000000000000", | ||
"previousblockhash": "00040fe8ec8471911baa1db1266ea15dd06b4a8a5c453883c000b031973dce08", | ||
"nextblockhash": "0002a26c902619fc964443264feb16f1e3e2d71322fc53dcb81cc5d797e273ed" | ||
} |
18 changes: 18 additions & 0 deletions
18
zebra-rpc/src/methods/tests/snapshots/get_block_header_height@testnet_10.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot.rs | ||
expression: block | ||
--- | ||
{ | ||
"hash": "025579869bcf52a989337342f5f57a84f3a28b968f7d6a8307902b065a668d23", | ||
"confirmations": 10, | ||
"height": 1, | ||
"version": 4, | ||
"merkle_root": "f37e9f691fffb635de0999491d906ee85ba40cd36dae9f6e5911a8277d7c5f75", | ||
"final_sapling_root": "fbc2f4300c01f0b7820d00e3347c8da4ee614674376cbc45359daa54f9b5493e", | ||
"time": 1477674473, | ||
"nonce": "000056c2264c31261d597c6fcea7c5e00160cf6be1cd89ca96a0389473e50000", | ||
"bits": "2007ffff", | ||
"difficulty": "07ffff0000000000000000000000000000000000000000000000000000000000", | ||
"previousblockhash": "05a60a92d99d85997cce3b87616c089f6124d7342af37106edc76126334a2c38", | ||
"nextblockhash": "00f1a49e54553ac3ef735f2eb1d8247c9a87c22a47dbd7823ae70adcd6c21a18" | ||
} |
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