Skip to content

Commit 0573db1

Browse files
pinheadmzclaude
andcommitted
ln_framework: fix CLN channel open push amount
push_msat is in millisatoshis, but was given the channel's push amount, which is in satoshis, so CLN pushed 1000x less than intended. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 6711e6c commit 0573db1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • resources/scenarios/ln_framework

‎resources/scenarios/ln_framework/ln.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def connect(self, target_uri) -> dict:
259259
def channel(self, pk, capacity, push_amt, fee_rate) -> dict:
260260
data = {
261261
"amount": capacity,
262-
"push_msat": push_amt,
262+
"push_msat": push_amt * 1000,
263263
"id": pk,
264264
# A feerate without a unit suffix is interpreted as sat/kvB
265265
"feerate": f"{fee_rate * 1000}perkb",

0 commit comments

Comments
 (0)