mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-11-16 15:58:14 +00:00
json: status
-> block_id
This commit is contained in:
parent
c95a661f7f
commit
480fbda78a
1 changed files with 3 additions and 4 deletions
|
@ -159,13 +159,12 @@ define_request_and_response! {
|
|||
/// use serde_json::*;
|
||||
/// use cuprate_rpc_types::json::*;
|
||||
///
|
||||
/// let x = SubmitBlockResponse { status: String::from("asdf") };
|
||||
/// let x = SubmitBlockResponse { block_id: String::from("asdf") };
|
||||
/// let x = to_string(&x).unwrap();
|
||||
/// assert_eq!(x, r#"{"status":"asdf"}"#);
|
||||
/// assert_eq!(x, r#"{"block_id":"asdf"}"#);
|
||||
/// ```
|
||||
Response {
|
||||
/// This is a block hash.
|
||||
status: String,
|
||||
block_id: String,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue