Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #174 from vaporos/016-move-protocol-structs
Browse files Browse the repository at this point in the history
Move transact::protocol::* to protocol::*
  • Loading branch information
vaporos authored Aug 10, 2023
2 parents a8b582e + c272af8 commit fdc5073
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 6 deletions.
11 changes: 11 additions & 0 deletions libsawtooth/src/protocol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,24 @@

//! Structs that cover the core protocols of the Sawtooth system.

#[cfg(feature = "transact-protocol-batch")]
pub mod batch;
#[cfg(feature = "protocol-block")]
pub mod block;
pub mod block_info;
pub mod command;
#[cfg(feature = "protocol-genesis")]
pub mod genesis;
pub mod identity;
#[cfg(feature = "transact-key-value-state")]
pub mod key_value_state;
#[cfg(feature = "transact")]
pub mod receipt;
#[cfg(any(feature = "transact-protocol-sabre", feature = "family-sabre"))]
pub mod sabre;
pub mod setting;
#[cfg(feature = "transact-protocol-transaction")]
pub mod transaction;

#[cfg(feature = "cylinder")]
use cylinder::SigningError;
Expand Down
12 changes: 6 additions & 6 deletions libsawtooth/src/transact/protocol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
//! scheduled and executed. The resuls of execution are stored in transaction receipts.

#[cfg(feature = "transact-protocol-batch")]
pub mod batch;
pub mod command;
pub use crate::protocol::batch;
pub use crate::protocol::command;
#[cfg(feature = "transact-key-value-state")]
pub mod key_value_state;
pub mod receipt;
pub use crate::protocol::key_value_state;
pub use crate::protocol::receipt;
#[cfg(any(feature = "transact-protocol-sabre", feature = "family-sabre"))]
pub mod sabre;
pub use crate::protocol::sabre;
#[cfg(feature = "transact-protocol-transaction")]
pub mod transaction;
pub use crate::protocol::transaction;

0 comments on commit fdc5073

Please sign in to comment.