mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-18 22:34:22 +01:00
Use local mempool api in tests
This commit is contained in:
@@ -60,7 +60,7 @@ type lspBase struct {
|
||||
postgresBackend *PostgresContainer
|
||||
}
|
||||
|
||||
func newLspd(h *lntest.TestHarness, name string, nodeConfig *config.NodeConfig, lnd *config.LndConfig, cln *config.ClnConfig, envExt ...string) (*lspBase, error) {
|
||||
func newLspd(h *lntest.TestHarness, mem *mempoolApi, name string, nodeConfig *config.NodeConfig, lnd *config.LndConfig, cln *config.ClnConfig, envExt ...string) (*lspBase, error) {
|
||||
scriptDir := h.GetDirectory(fmt.Sprintf("lspd-%s", name))
|
||||
log.Printf("%s: Creating LSPD in dir %s", name, scriptDir)
|
||||
|
||||
@@ -129,7 +129,7 @@ func newLspd(h *lntest.TestHarness, name string, nodeConfig *config.NodeConfig,
|
||||
nodes,
|
||||
fmt.Sprintf("DATABASE_URL=%s", postgresBackend.ConnectionString()),
|
||||
fmt.Sprintf("LISTEN_ADDRESS=%s", grpcAddress),
|
||||
"MEMPOOL_API_BASE_URL=https://mempool.space/api/v1/",
|
||||
fmt.Sprintf("MEMPOOL_API_BASE_URL=%s", mem.Address()),
|
||||
"MEMPOOL_PRIORITY=economy",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user