Skip to content

Commit

Permalink
chore: fix shebang line in Python plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Aug 11, 2023
1 parent d3b4614 commit bb021ec
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions docker/regtest/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ function waitForClnChannel () {
sleep 25
}

echo "/tools/.venv/bin/python3 /tools/hold/plugin.py" > /root/hold-start.sh
chmod +x /root/hold-start.sh

startNodes

bitcoin-cli createwallet $DEFAULT_WALLET_NAME > /dev/null
Expand Down
3 changes: 2 additions & 1 deletion test/integration/chain/ChainClient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ describe('ChainClient', () => {
}

expect(bitcoinClient['zmqClient'].relevantInputs.size).toEqual(
unspentUtxos.length,
// In case the wallet has multiple outputs from the same transaction
new Set<string>(unspentUtxos.map((utxo) => utxo.txid)).size,
);
});

Expand Down
2 changes: 1 addition & 1 deletion tools/backup/backup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env /tools/.venv/bin/python3
#!/usr/bin/env python3
import json
from datetime import datetime, timezone
from enum import Enum
Expand Down
3 changes: 1 addition & 2 deletions tools/hold/plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env /tools/.venv/bin/python3
#!/usr/bin/env python3
import hashlib
from typing import Any

Expand All @@ -12,7 +12,6 @@
from pyln.client.plugin import Request
from settler import HtlcFailureMessage, Settler

# TODO: fix shebang line
# TODO: restart handling
# TODO: docstrings
# TODO: gRPC with subs
Expand Down
2 changes: 1 addition & 1 deletion tools/hold/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from bolt11.types import MilliSatoshi
from cli_utils import CliCaller, cln_con

PLUGIN_PATH = "/tools/hold/plugin.py"
PLUGIN_PATH = "/root/hold-start.sh"


class LndNode(Enum):
Expand Down

0 comments on commit bb021ec

Please sign in to comment.