Skip to content

Commit

Permalink
Add esplora plugin from lvaccaro
Browse files Browse the repository at this point in the history
  • Loading branch information
jsarenik committed Feb 2, 2021
1 parent 9da191e commit 6c84d36
Show file tree
Hide file tree
Showing 4 changed files with 810 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ contrib/pyln-*/pyln_*.egg-info/
plugins/fetchinvoice
plugins/offers
plugins/keysend
plugins/esplora
plugins/txprepare
release/
tests/plugins/test_selfdisable_after_getmanifest
devtools/route
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ ifeq ($(STATIC),1)
# For MacOS, Jacob Rapoport <[email protected]> changed this to:
# -L/usr/local/lib -Wl,-lgmp -lsqlite3 -lz -Wl,-lm -lpthread -ldl $(COVFLAGS)
# But that doesn't static link.
LDLIBS = -L/usr/local/lib -Wl,-dn -lgmp $(SQLITE3_LDLIBS) -lz -Wl,-dy -lm -lpthread -ldl $(COVFLAGS)
LDLIBS = -lcurl -lssl -lcrypto -L/usr/local/lib -Wl,-dn -lgmp $(SQLITE3_LDLIBS) -lz -Wl,-dy -lm -lpthread -ldl $(COVFLAGS)
else
LDLIBS = -L/usr/local/lib -lm -lgmp $(SQLITE3_LDLIBS) -lz $(COVFLAGS)
LDLIBS = -lcurl -lssl -lcrypto -L/usr/local/lib -lm -lgmp $(SQLITE3_LDLIBS) -lz $(COVFLAGS)
endif

# If we have the postgres client library we need to link against it as well
Expand Down
8 changes: 7 additions & 1 deletion plugins/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ PLUGIN_BCLI_OBJS := $(PLUGIN_BCLI_SRC:.c=.o)
PLUGIN_KEYSEND_SRC := plugins/keysend.c
PLUGIN_KEYSEND_OBJS := $(PLUGIN_KEYSEND_SRC:.c=.o)

PLUGIN_ESPLORA_SRC := plugins/esplora.c
PLUGIN_ESPLORA_OBJS := $(PLUGIN_ESPLORA_SRC:.c=.o)

PLUGIN_LIB_SRC := plugins/libplugin.c
PLUGIN_LIB_HEADER := plugins/libplugin.h
PLUGIN_LIB_OBJS := $(PLUGIN_LIB_SRC:.c=.o)
Expand Down Expand Up @@ -70,7 +73,8 @@ PLUGINS := \
plugins/offers \
plugins/pay \
plugins/txprepare \
plugins/spenderp
plugins/spenderp \
plugins/esplora

# Make sure these depend on everything.
ALL_C_SOURCES += $(PLUGIN_ALL_SRC)
Expand Down Expand Up @@ -136,6 +140,8 @@ plugins/offers: bitcoin/chainparams.o $(PLUGIN_OFFERS_OBJS) $(PLUGIN_LIB_OBJS) $

plugins/fetchinvoice: bitcoin/chainparams.o $(PLUGIN_FETCHINVOICE_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_COMMON_OBJS) common/bolt12.o common/bolt12_merkle.o common/iso4217.o $(WIRE_OBJS) bitcoin/block.o common/channel_id.o bitcoin/preimage.o $(JSMN_OBJS) $(CCAN_OBJS) common/gossmap.o common/dijkstra.o common/route.o common/blindedpath.o common/hmac.o common/blinding.o

plugins/esplora: bitcoin/chainparams.o $(PLUGIN_ESPLORA_OBJS) $(PLUGIN_LIB_OBJS) $(PLUGIN_COMMON_OBJS) $(JSMN_OBJS) $(CCAN_OBJS)

$(PLUGIN_ALL_OBJS): $(PLUGIN_LIB_HEADER)

# Generated from PLUGINS definition in plugins/Makefile
Expand Down
Loading

0 comments on commit 6c84d36

Please sign in to comment.