mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-11-16 15:58:14 +00:00
bin: GetTransactionPoolHashes
This commit is contained in:
parent
5b765ed796
commit
416e2c4928
2 changed files with 20 additions and 9 deletions
|
@ -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 {
|
||||
|
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue