Skip to content

Commit

Permalink
fixup mempool urls
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Nov 2, 2023
1 parent e2620a9 commit c7d8d36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion boltz_client/boltz.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class BoltzReverseSwapResponse:
class BoltzConfig:
network: str = "main"
api_url: str = "https://boltz.exchange/api"
mempool_url: str = "https://mempool.space/api"
mempool_url: str = "https://mempool.space/api/v1"
mempool_ws_url: str = "wss://mempool.space/api/v1/ws"
referral_id: str = "dni"

Expand Down
2 changes: 1 addition & 1 deletion boltz_client/mempool.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def get_tx_from_address(self, address: str) -> LockupData:
def get_fees(self) -> int:
data = self.request(
"get",
f"{self._api_url}/v1/fees/recommended",
f"{self._api_url}/fees/recommended",
headers={"Content-Type": "application/json"},
)
return int(data["halfHourFee"])
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ async def client():
config = BoltzConfig(
network="regtest",
api_url="http://localhost:9001",
mempool_url="http://localhost:8080/api",
mempool_ws_url="ws://localhost:8080/api/v1/ws",
mempool_url="http://localhost:8999/api/v1",
mempool_ws_url="ws://localhost:8999/api/v1/ws",
)
client = BoltzClient(config)
yield client
Expand Down

0 comments on commit c7d8d36

Please sign in to comment.