aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.rs
blob: 80d2def775ede96be43e29ece3e40dc8c68f7b5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! # Configuration
//!
//! This module holds the data structures for network configuration.
use serde::{Deserialize, Serialize};

/// Configuration for a single network
#[derive(Debug, Serialize, Deserialize, Clone, Default)]
pub struct Config {
    // Valid blocks should have this many transactions
    pub block_transaction_count: u8,
    // Inital registration bonus
    pub register_bonus: u16,
    // Coinbase reward
    pub block_reward: u16,
    // Transaction amount limit
    pub tx_upper_limit: u16,
    pub tx_lower_limit: u16,
    // Transaction traffic reward
    pub tx_traffic_reward: u16,
}