docs
Some checks are pending
Audit / audit (push) Waiting to run
Deny / audit (push) Waiting to run

This commit is contained in:
hinto.janai 2024-09-26 17:11:02 -04:00
parent 45b5a241ab
commit d86156f429
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
3 changed files with 6 additions and 6 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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,