-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates vectors and snapshot tests, changes hex decoding error in sub…
…mit_block method from server error to parse error
- Loading branch information
Showing
11 changed files
with
72 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use jsonrpc_core::types::error::{Error, ErrorCode}; | ||
|
||
pub(crate) fn make_server_error(message: impl std::fmt::Display) -> Error { | ||
Error { | ||
code: ErrorCode::ServerError(0), | ||
message: message.to_string(), | ||
data: None, | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
...pc/src/methods/tests/snapshot/snapshots/snapshot_rpc_submit_block_invalid@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,7 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot/get_block_template_rpcs.rs | ||
expression: submit_block_response | ||
--- | ||
{ | ||
"Ok": "rejected" | ||
} |
7 changes: 7 additions & 0 deletions
7
...pc/src/methods/tests/snapshot/snapshots/snapshot_rpc_submit_block_invalid@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,7 @@ | ||
--- | ||
source: zebra-rpc/src/methods/tests/snapshot/get_block_template_rpcs.rs | ||
expression: submit_block_response | ||
--- | ||
{ | ||
"Ok": "rejected" | ||
} |
10 changes: 0 additions & 10 deletions
10
...c/src/methods/tests/snapshot/snapshots/submit_block_deserialization_error@mainnet_10.snap
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...c/src/methods/tests/snapshot/snapshots/submit_block_deserialization_error@testnet_10.snap
This file was deleted.
Oops, something went wrong.
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