json: status -> block_id

This commit is contained in:
hinto.janai 2024-07-09 18:52:15 -04:00
parent c95a661f7f
commit 480fbda78a
No known key found for this signature in database
GPG key ID: D47CE05FA175A499

View file

@ -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,
}
}