diff options
| -rw-r--r-- | config.yaml | 5 | ||||
| -rw-r--r-- | src/config.rs | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/config.yaml b/config.yaml index 9aa73f3..b60691a 100644 --- a/config.yaml +++ b/config.yaml | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | # The name of the network | ||
| 2 | name: mainnet | ||
| 3 | # URL Prefix for this network | ||
| 4 | # For example, url_prefix is "example", register at "gradecoin.xyz/example/register" | ||
| 5 | url_prefix: "" | ||
| 1 | # Valid blocks should have this many transactions | 6 | # Valid blocks should have this many transactions |
| 2 | block_transaction_count: 4 | 7 | block_transaction_count: 4 |
| 3 | # Bonus awarded after registration | 8 | # Bonus awarded after registration |
diff --git a/src/config.rs b/src/config.rs index 10c054c..e6f5e0e 100644 --- a/src/config.rs +++ b/src/config.rs | |||
| @@ -7,6 +7,10 @@ use log::{error, info}; | |||
| 7 | /// Configuration for a single network | 7 | /// Configuration for a single network |
| 8 | #[derive(Debug, Serialize, Deserialize, Clone, Default)] | 8 | #[derive(Debug, Serialize, Deserialize, Clone, Default)] |
| 9 | pub struct Config { | 9 | pub struct Config { |
| 10 | // Name of the network | ||
| 11 | pub name: String, | ||
| 12 | // URL prefix for this network, can be empty | ||
| 13 | pub url_prefix: String, | ||
| 10 | // Valid blocks should have this many transactions | 14 | // Valid blocks should have this many transactions |
| 11 | pub block_transaction_count: u8, | 15 | pub block_transaction_count: u8, |
| 12 | // Inital registration bonus | 16 | // Inital registration bonus |
