Skip to content

Commit 0cd0df5

Browse files
committed
Back to CLN v23.11.2 but enable anchor, batching tests fix
1 parent cd62422 commit 0cd0df5

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

cyphernodeconf_docker/templates/lightning/c-lightning/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,5 @@ announce-addr=<%= locals.lightning_external_ip %>:9735
5656
<% } %>
5757
<% } %>
5858
<% } %>
59+
60+
experimental-anchors

dist/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ OTSCLIENT_VERSION="v0.9.0-rc.3"
928928
PYCOIN_VERSION="v0.9.0-rc.3"
929929
CYPHERAPPS_VERSION="releases/v0.9.0"
930930
BITCOIN_VERSION="v24.0.1-mosquitto-debian"
931-
LIGHTNING_VERSION="v24.02.2"
931+
LIGHTNING_VERSION="v23.11.2"
932932
TRAEFIK_VERSION="v2.6.3"
933933
MOSQUITTO_VERSION="1.6-openssl"
934934
POSTGRES_VERSION="14.0-bullseye"

proxy_docker/app/tests/test-batching.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ testbatching() {
196196
fi
197197
trace 2 "\n\n[testbatching] ${BCyan}Tested batchspend.${Color_Off}\n"
198198

199+
# The batchspend should have triggered the safety net mechanism of flagging the recipient's txid as DEFECT-
200+
# When this happens, a manual intervention is needed to make sure the payment has not been broadcast to avoid double-payments.
201+
# In this case, an output amount was too large so we know the payment has not been done. Let's just remove the DEFECT- flag.
202+
trace 2 "\n\n[testbatching] ${BCyan}Cleaning up the failed batchspend...${Color_Off}\n"
203+
docker exec -it $(docker ps -q -f "name=proxy\.") psql -U cyphernode -h postgres -c "UPDATE recipient SET tx_id = NULL WHERE id IN (${id}, ${id2}); DELETE FROM tx WHERE id = (SELECT tx_id FROM recipient WHERE id = ${id});"
204+
199205
# getbatchdetails the default batcher
200206
trace 2 "\n\n[testbatching] ${BCyan}Testing getbatchdetails...${Color_Off}\n"
201207
response=$(exec_in_test_container curl -sd '{}' proxy:8888/getbatchdetails)

0 commit comments

Comments
 (0)