Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ exclude = '''
'''

[tool.ruff]
extend-exclude = ["src/test_framework/*.py"]
extend-exclude = ["src/test_framework/*.py", "src/external/buildmap.py"]
line-length = 100
indent-width = 4
14 changes: 8 additions & 6 deletions src/backends/compose_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,10 @@ def write_prometheus_config(self, warnet):
"job_name": tank.exporter_name,
"scrape_interval": "5s",
"static_configs": [{"targets": [f"{tank.exporter_name}:9332"]}],
})
}
)

config = {
"global": {"scrape_interval": "15s"},
"scrape_configs": scrape_configs
}
config = {"global": {"scrape_interval": "15s"}, "scrape_configs": scrape_configs}

prometheus_path = self.config_dir / "prometheus.yml"
try:
Expand Down Expand Up @@ -381,6 +379,10 @@ def add_services(self, tank: Tank, services):
"start_period": "5s", # Start checking after 5 seconds
"retries": 3,
},
"volumes": [
# Mount asmap.dat in rw mode (as entrypoint.sh will attempt to take ownership of it)
f"{self.config_dir / 'asmap.dat'}:/home/bitcoin/.bitcoin/regtest/asmap.dat:rw"
],
}
)

Expand All @@ -398,7 +400,7 @@ def add_services(self, tank: Tank, services):
"BITCOIN_RPC_USER": tank.rpc_user,
"BITCOIN_RPC_PASSWORD": tank.rpc_password,
},
"networks": [tank.network_name]
"networks": [tank.network_name],
}

def add_lnd_service(self, tank, services):
Expand Down
Empty file added src/external/__init__.py
Empty file.
Loading