aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
new file mode 100644
index 0000000..80d2def
--- /dev/null
+++ b/src/config.rs
@@ -0,0 +1,20 @@
1//! # Configuration
2//!
3//! This module holds the data structures for network configuration.
4use serde::{Deserialize, Serialize};
5
6/// Configuration for a single network
7#[derive(Debug, Serialize, Deserialize, Clone, Default)]
8pub struct Config {
9 // Valid blocks should have this many transactions
10 pub block_transaction_count: u8,
11 // Inital registration bonus
12 pub register_bonus: u16,
13 // Coinbase reward
14 pub block_reward: u16,
15 // Transaction amount limit
16 pub tx_upper_limit: u16,
17 pub tx_lower_limit: u16,
18 // Transaction traffic reward
19 pub tx_traffic_reward: u16,
20}