Skip to content

Commit a28495f

Browse files
committed
chore: add some ferment exports for masternode lists
1 parent 94489ca commit a28495f

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

dash/src/sml/llmq_entry_verification.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ impl Display for LLMQEntryVerificationSkipStatus {
4242
#[cfg_attr(feature = "bincode", derive(Encode, Decode))]
4343
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
4444
#[cfg_attr(feature = "serde", serde(crate = "actual_serde"))]
45+
#[ferment_macro::export]
4546
pub enum LLMQEntryVerificationStatus {
4647
#[default]
4748
Unknown,

dash/src/sml/masternode_list/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ use crate::{BlockHash, ProTxHash, QuorumHash};
2424
#[cfg_attr(feature = "bincode", derive(Encode, Decode))]
2525
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
2626
#[cfg_attr(feature = "serde", serde(crate = "actual_serde"))]
27+
#[ferment_macro::export]
2728
pub struct MasternodeList {
2829
pub block_hash: BlockHash,
2930
pub known_height: u32,

dash/src/sml/masternode_list_entry/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use crate::{ProTxHash, PubkeyHash};
1717
#[cfg_attr(feature = "bincode", derive(Encode, Decode))]
1818
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
1919
#[cfg_attr(feature = "serde", serde(crate = "actual_serde"))]
20+
#[ferment_macro::export]
2021
pub enum MasternodeType {
2122
Regular,
2223
HighPerformance { platform_http_port: u16, platform_node_id: PubkeyHash },
@@ -63,6 +64,7 @@ impl Decodable for MasternodeType {
6364
}
6465

6566
#[derive(Clone, Ord, PartialOrd, Eq, PartialEq, Debug)]
67+
#[ferment_macro::export]
6668
pub struct OperatorPublicKey {
6769
// TODO: We are using two different public keys here
6870
pub data: BLSPublicKey,
@@ -75,6 +77,7 @@ impl_consensus_encoding!(OperatorPublicKey, data, version);
7577
#[cfg_attr(feature = "bincode", derive(Encode, Decode))]
7678
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
7779
#[cfg_attr(feature = "serde", serde(crate = "actual_serde"))]
80+
#[ferment_macro::export]
7881
pub struct MasternodeListEntry {
7982
pub version: u16,
8083
pub pro_reg_tx_hash: ProTxHash,

dash/src/sml/masternode_list_entry/qualified_masternode_list_entry.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use crate::sml::masternode_list_entry::MasternodeListEntry;
1414
#[cfg_attr(feature = "bincode", derive(Encode, Decode))]
1515
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
1616
#[cfg_attr(feature = "serde", serde(crate = "actual_serde"))]
17+
#[ferment_macro::export]
1718
pub struct QualifiedMasternodeListEntry {
1819
/// The underlying masternode list entry
1920
pub masternode_list_entry: MasternodeListEntry,

dash/src/sml/quorum_entry/qualified_quorum_entry.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use crate::transaction::special_transaction::quorum_commitment::QuorumEntry;
1717
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
1818
#[cfg_attr(feature = "serde", serde(crate = "actual_serde"))]
1919
#[cfg_attr(feature = "bincode", derive(Encode, Decode))]
20+
#[ferment_macro::export]
2021
pub struct QualifiedQuorumEntry {
2122
/// The underlying quorum entry
2223
pub quorum_entry: QuorumEntry,

0 commit comments

Comments
 (0)