From 3f5671a3b0833046cad4f4be25d66ec49707a0b6 Mon Sep 17 00:00:00 2001 From: necrashter Date: Sat, 23 Apr 2022 15:11:34 +0300 Subject: name and url_prefix fields in config --- config.yaml | 5 +++++ src/config.rs | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/config.yaml b/config.yaml index 9aa73f3..b60691a 100644 --- a/config.yaml +++ b/config.yaml @@ -1,3 +1,8 @@ +# The name of the network +name: mainnet +# URL Prefix for this network +# For example, url_prefix is "example", register at "gradecoin.xyz/example/register" +url_prefix: "" # Valid blocks should have this many transactions block_transaction_count: 4 # 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}; /// Configuration for a single network #[derive(Debug, Serialize, Deserialize, Clone, Default)] pub struct Config { + // Name of the network + pub name: String, + // URL prefix for this network, can be empty + pub url_prefix: String, // Valid blocks should have this many transactions pub block_transaction_count: u8, // Inital registration bonus -- cgit v1.2.3-70-g09d2