mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-24 19:35:57 +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 {
|
pub enum TxEntry {
|
||||||
/// This entry exists in the transaction pool.
|
/// This entry exists in the transaction pool.
|
||||||
InPool {
|
InPool {
|
||||||
/// This field is flattened.
|
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||||
#[cfg_attr(feature = "serde", serde(flatten))]
|
#[cfg_attr(feature = "serde", serde(flatten))]
|
||||||
prefix: TxEntryPrefix,
|
prefix: TxEntryPrefix,
|
||||||
block_height: u64,
|
block_height: u64,
|
||||||
|
@ -84,7 +84,7 @@ pub enum TxEntry {
|
||||||
},
|
},
|
||||||
/// This entry _does not_ exist in the transaction pool.
|
/// This entry _does not_ exist in the transaction pool.
|
||||||
NotInPool {
|
NotInPool {
|
||||||
/// This field is flattened.
|
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||||
#[cfg_attr(feature = "serde", serde(flatten))]
|
#[cfg_attr(feature = "serde", serde(flatten))]
|
||||||
prefix: TxEntryPrefix,
|
prefix: TxEntryPrefix,
|
||||||
received_timestamp: u64,
|
received_timestamp: u64,
|
||||||
|
|
|
@ -27,13 +27,13 @@ pub struct Block {
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum MinerTransaction {
|
pub enum MinerTransaction {
|
||||||
V1 {
|
V1 {
|
||||||
/// This field is flattened.
|
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
prefix: MinerTransactionPrefix,
|
prefix: MinerTransactionPrefix,
|
||||||
signatures: [(); 0],
|
signatures: [(); 0],
|
||||||
},
|
},
|
||||||
V2 {
|
V2 {
|
||||||
/// This field is flattened.
|
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
prefix: MinerTransactionPrefix,
|
prefix: MinerTransactionPrefix,
|
||||||
rct_signatures: MinerTransactionRctSignatures,
|
rct_signatures: MinerTransactionRctSignatures,
|
||||||
|
|
|
@ -20,13 +20,13 @@ use crate::json::output::Output;
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum Transaction {
|
pub enum Transaction {
|
||||||
V1 {
|
V1 {
|
||||||
/// This field is flattened.
|
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
prefix: TransactionPrefix,
|
prefix: TransactionPrefix,
|
||||||
signatures: Vec<String>,
|
signatures: Vec<String>,
|
||||||
},
|
},
|
||||||
V2 {
|
V2 {
|
||||||
/// This field is flattened.
|
/// This field is [flattened](https://serde.rs/field-attrs.html#flatten).
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
prefix: TransactionPrefix,
|
prefix: TransactionPrefix,
|
||||||
rct_signatures: RctSignatures,
|
rct_signatures: RctSignatures,
|
||||||
|
|
Loading…
Reference in a new issue