bin: GetTransactionPoolHashes

This commit is contained in:
hinto.janai 2024-07-07 20:37:36 -04:00
parent 5b765ed796
commit 416e2c4928
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
2 changed files with 20 additions and 9 deletions

View file

@ -109,6 +109,17 @@ define_request_and_response! {
}
}
define_request_and_response! {
get_transaction_pool_hashesbin,
cc73fe71162d564ffda8e549b79a350bca53c454 =>
core_rpc_server_commands_defs.h => 1593..=1613,
GetTransactionPoolHashes,
Request {},
AccessResponseBase {
tx_hashes: Vec<[u8; 32]>,
}
}
//---------------------------------------------------------------------------------------------------- Tests
#[cfg(test)]
mod test {

View file

@ -446,23 +446,23 @@ define_struct_and_impl_epee! {
)]
/// Used in [`crate::other::GetTransactionPoolResponse`].
TxInfo {
id_hash: String,
tx_json: String,
blob_size: u64,
#[cfg_attr(feature = "serde", serde(default = "default_u64"))]
weight: u64 = default_u64(),
do_not_relay: bool,
double_spend_seen: bool,
fee: u64,
max_used_block_id_hash: String,
max_used_block_height: u64,
id_hash: String,
kept_by_block: bool,
last_failed_height: u64,
last_failed_id_hash: String,
last_relayed_time: u64,
max_used_block_height: u64,
max_used_block_id_hash: String,
receive_time: u64,
relayed: bool,
last_relayed_time: u64,
do_not_relay: bool,
double_spend_seen: bool,
tx_blob: String,
tx_json: String, // TODO: this should be another struct
#[cfg_attr(feature = "serde", serde(default = "default_u64"))]
weight: u64 = default_u64(),
}
}