-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add(rpc): Add extra
getblock
RPC fields used by some mining pools (#…
…6097) * clippy: remove unnecessary return statement * Add hash, height, and confirmations fields to getblock RPC * Remove a test that is already checked by snapshots * Document the performance requirements of the getblock RPC * Update snapshots, use new naming scheme * Fix off-by-one error in confirmations * Fix spelling mistakes
- Loading branch information
Showing
18 changed files
with
303 additions
and
38 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
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
zebra-rpc/src/methods/tests/snapshots/get_block_data_height_verbosity_0@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,5 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot.rs | ||
expression: block | ||
--- | ||
"[BlockData]" |
5 changes: 5 additions & 0 deletions
5
zebra-rpc/src/methods/tests/snapshots/get_block_data_height_verbosity_0@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,5 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot.rs | ||
expression: block | ||
--- | ||
"[BlockData]" |
11 changes: 11 additions & 0 deletions
11
zebra-rpc/src/methods/tests/snapshots/get_block_verbose_hash_verbosity_1@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,11 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot.rs | ||
expression: block | ||
--- | ||
{ | ||
"hash": "0007bc227e1c57a4a70e237cad00e7b7ce565155ab49166bc57397a26d339283", | ||
"confirmations": 10, | ||
"tx": [ | ||
"851bf6fbf7a976327817c738c489d7fa657752445430922d94c983c0b9ed4609" | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
zebra-rpc/src/methods/tests/snapshots/get_block_verbose_hash_verbosity_1@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,11 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot.rs | ||
expression: block | ||
--- | ||
{ | ||
"hash": "025579869bcf52a989337342f5f57a84f3a28b968f7d6a8307902b065a668d23", | ||
"confirmations": 10, | ||
"tx": [ | ||
"f37e9f691fffb635de0999491d906ee85ba40cd36dae9f6e5911a8277d7c5f75" | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
...-rpc/src/methods/tests/snapshots/get_block_verbose_hash_verbosity_default@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,11 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot.rs | ||
expression: block | ||
--- | ||
{ | ||
"hash": "0007bc227e1c57a4a70e237cad00e7b7ce565155ab49166bc57397a26d339283", | ||
"confirmations": 10, | ||
"tx": [ | ||
"851bf6fbf7a976327817c738c489d7fa657752445430922d94c983c0b9ed4609" | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
...-rpc/src/methods/tests/snapshots/get_block_verbose_hash_verbosity_default@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,11 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot.rs | ||
expression: block | ||
--- | ||
{ | ||
"hash": "025579869bcf52a989337342f5f57a84f3a28b968f7d6a8307902b065a668d23", | ||
"confirmations": 10, | ||
"tx": [ | ||
"f37e9f691fffb635de0999491d906ee85ba40cd36dae9f6e5911a8277d7c5f75" | ||
] | ||
} |
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
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.