mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-02-03 11:46:42 +00:00
372cab24d7
* apply diffs * clippy * fix tests * rpc: fix tests * remove `BlockchainManagerRequest::Overview` * cuprated/p2p: fix `ConnectionInfo` * move `CalculatePow` * remove `AddAuxPow` * move `Spans` and `NextNeededPruningSeed` * factor types into `cuprate-types` * scope cargo features * fix/doc type serde * Update binaries/cuprated/src/rpc/request/address_book.rs Co-authored-by: Boog900 <boog900@tutanota.com> * Update binaries/cuprated/src/rpc/request/blockchain_context.rs Co-authored-by: Boog900 <boog900@tutanota.com> * Update binaries/cuprated/src/rpc/request/blockchain_manager.rs Co-authored-by: Boog900 <boog900@tutanota.com> * fmt * txpool: collapse `TxEntry` * `ConnectionId` * fix import * fix bin --------- Co-authored-by: Boog900 <boog900@tutanota.com>
16 lines
526 B
Rust
16 lines
526 B
Rust
//! Transaction metadata.
|
|
|
|
/// Data about a transaction in the pool.
|
|
///
|
|
/// Used in [`TxpoolReadResponse::Backlog`](crate::service::interface::TxpoolReadResponse::Backlog).
|
|
#[derive(Copy, Clone, Debug, Ord, PartialOrd, Eq, PartialEq, Hash)]
|
|
pub struct TxEntry {
|
|
/// The transaction's ID (hash).
|
|
pub id: [u8; 32],
|
|
/// The transaction's weight.
|
|
pub weight: u64,
|
|
/// The transaction's fee.
|
|
pub fee: u64,
|
|
/// How long the transaction has been in the pool.
|
|
pub time_in_pool: std::time::Duration,
|
|
}
|