mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-08 20:09:41 +00:00
docs
This commit is contained in:
parent
45b5a241ab
commit
d86156f429
3 changed files with 6 additions and 6 deletions
|
@ -71,7 +71,7 @@ use cuprate_epee_encoding::{
|
|||
pub enum TxEntry {
|
||||
/// This entry exists in the transaction pool.
|
||||
InPool {
|
||||
/// This field is flattened.
|
||||
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||
#[cfg_attr(feature = "serde", serde(flatten))]
|
||||
prefix: TxEntryPrefix,
|
||||
block_height: u64,
|
||||
|
@ -84,7 +84,7 @@ pub enum TxEntry {
|
|||
},
|
||||
/// This entry _does not_ exist in the transaction pool.
|
||||
NotInPool {
|
||||
/// This field is flattened.
|
||||
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||
#[cfg_attr(feature = "serde", serde(flatten))]
|
||||
prefix: TxEntryPrefix,
|
||||
received_timestamp: u64,
|
||||
|
|
|
@ -27,13 +27,13 @@ pub struct Block {
|
|||
#[serde(untagged)]
|
||||
pub enum MinerTransaction {
|
||||
V1 {
|
||||
/// This field is flattened.
|
||||
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||
#[serde(flatten)]
|
||||
prefix: MinerTransactionPrefix,
|
||||
signatures: [(); 0],
|
||||
},
|
||||
V2 {
|
||||
/// This field is flattened.
|
||||
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||
#[serde(flatten)]
|
||||
prefix: MinerTransactionPrefix,
|
||||
rct_signatures: MinerTransactionRctSignatures,
|
||||
|
|
|
@ -20,13 +20,13 @@ use crate::json::output::Output;
|
|||
#[serde(untagged)]
|
||||
pub enum Transaction {
|
||||
V1 {
|
||||
/// This field is flattened.
|
||||
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||
#[serde(flatten)]
|
||||
prefix: TransactionPrefix,
|
||||
signatures: Vec<String>,
|
||||
},
|
||||
V2 {
|
||||
/// This field is flattened.
|
||||
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||
#[serde(flatten)]
|
||||
prefix: TransactionPrefix,
|
||||
rct_signatures: RctSignatures,
|
||||
|
|
Loading…
Reference in a new issue