-
Notifications
You must be signed in to change notification settings - Fork 63
RPC types changes/fixes #604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,9 +8,6 @@ use cuprate_fixed_bytes::ByteArrayVec; | |
| #[cfg(feature = "serde")] | ||
| use serde::{Deserialize, Serialize}; | ||
|
|
||
| #[cfg(feature = "epee")] | ||
| use cuprate_epee_encoding::container_as_blob::ContainerAsBlob; | ||
|
|
||
| use cuprate_types::{ | ||
| rpc::{BlockOutputIndices, PoolInfo}, | ||
| BlockCompleteEntry, | ||
|
|
@@ -24,7 +21,7 @@ use crate::{ | |
| }; | ||
|
|
||
| #[cfg(any(feature = "epee", feature = "serde"))] | ||
| use crate::defaults::default; | ||
| use crate::defaults::{default, default_true}; | ||
|
|
||
| //---------------------------------------------------------------------------------------------------- Definitions | ||
| define_request_and_response! { | ||
|
|
@@ -50,13 +47,12 @@ define_request_and_response! { | |
| start_height: u64, | ||
| }, | ||
| AccessResponseBase { | ||
| m_blocks_ids: ByteArrayVec<32> = default::<ByteArrayVec<32>>(), "default", | ||
| m_block_ids: ByteArrayVec<32> = default::<ByteArrayVec<32>>(), "default", | ||
| start_height: u64, | ||
| current_height: u64, | ||
| } | ||
| } | ||
|
|
||
| #[cfg(not(feature = "epee"))] | ||
| define_request_and_response! { | ||
| get_o_indexesbin, | ||
| "cc73fe71162d564ffda8e549b79a350bca53c454" => | ||
|
|
@@ -71,29 +67,14 @@ define_request_and_response! { | |
| } | ||
| } | ||
|
|
||
| #[cfg(feature = "epee")] | ||
| define_request_and_response! { | ||
| get_o_indexesbin, | ||
| "cc73fe71162d564ffda8e549b79a350bca53c454" => | ||
| core_rpc_server_commands_defs.h => 487..=510, | ||
| GetOutputIndexes, | ||
| #[derive(Copy)] | ||
| Request { | ||
| txid: [u8; 32], | ||
| }, | ||
| AccessResponseBase { | ||
| o_indexes: Vec<u64> as ContainerAsBlob<u64>, | ||
| } | ||
| } | ||
|
|
||
|
Comment on lines
-74
to
-88
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed the duplicate of |
||
| define_request_and_response! { | ||
| get_outsbin, | ||
| "cc73fe71162d564ffda8e549b79a350bca53c454" => | ||
| core_rpc_server_commands_defs.h => 512..=565, | ||
| GetOuts, | ||
| Request { | ||
| outputs: Vec<GetOutputsOut> = default::<Vec<GetOutputsOut>>(), "default", | ||
| get_txid: bool, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| get_txid: bool = default_true(), "default_true", | ||
| }, | ||
| AccessResponseBase { | ||
| outs: Vec<OutKeyBin> = default::<Vec<OutKeyBin>>(), "default", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,7 +46,7 @@ pub const CORE_RPC_VERSION_MAJOR: u32 = 3; | |
|
|
||
| #[doc = monero_definition_link!("cc73fe71162d564ffda8e549b79a350bca53c454", "/rpc/core_rpc_server_commands_defs.h", 91)] | ||
| /// RPC miror version. | ||
| pub const CORE_RPC_VERSION_MINOR: u32 = 14; | ||
| pub const CORE_RPC_VERSION_MINOR: u32 = 15; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MINOR bump to 15: the still relevant addition in monerod is monero-project/monero#9383, which adds Should be added with the bump or new issue? theres already a TODO for it fwiw
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yeah, this PR is split from my wider RPC changes, where this is already done. I'll leave this for now as it'll be ok once the rest is merged. |
||
|
|
||
| #[doc = monero_definition_link!("cc73fe71162d564ffda8e549b79a350bca53c454", "/rpc/core_rpc_server_commands_defs.h", 92..=93)] | ||
| /// RPC version. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo fix The field name in monerod is
m_block_ids.