Skip to content

Commit

Permalink
Fix conf file to have valid port values in test
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
  • Loading branch information
jferrant committed Oct 22, 2024
1 parent c043484 commit c179036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions testnet/stacks-node/conf/testnet-miner-conf.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ mode = "krypton"
peer_host = "127.0.0.1"
username = "<Bitcoin RPC username>"
password = "<Bitcoin RPC password>"
rpc_port = <Bitcoin RPC port>
peer_port = <Bitcoin P2P port>
rpc_port = 12345 # Bitcoin RPC port
peer_port = 6789 # Bitcoin P2P port
pox_prepare_length = 100
pox_reward_length = 900
# Maximum amount (in sats) of "burn commitment" to broadcast for the next block's leader election
Expand Down
3 changes: 2 additions & 1 deletion testnet/stacks-node/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3033,8 +3033,9 @@ mod tests {
if path.is_file() {
let file_name = path.file_name().unwrap().to_str().unwrap();
if file_name.ends_with(".toml") {
debug!("Parsing config file: {file_name}");
let _config = ConfigFile::from_path(path.to_str().unwrap()).unwrap();
debug!("Parsed config file: {}", file_name);
debug!("Parsed config file: {file_name}");
}
}
}
Expand Down

0 comments on commit c179036

Please sign in to comment.