Skip to content

Commit

Permalink
make PeersWanted a runtime setting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopeereboom committed Jun 12, 2024
1 parent c04cde3 commit 8ea7128
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/tbcd/tbcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ var (
Help: "bitcoin network; mainnet or testnet3",
Print: config.PrintAll,
},
"TBC_PEERS_WANTED": config.Config{
Value: &cfg.PeersWanted,
DefaultValue: 64,
Help: "number of wanted p2p peers",
Print: config.PrintAll,
},
"TBC_PROMETHEUS_ADDRESS": config.Config{
Value: &cfg.PrometheusListenAddress,
DefaultValue: "",
Expand Down

0 comments on commit 8ea7128

Please sign in to comment.