Skip to content

Commit

Permalink
lnprototest: import lightning/bolts#880
Browse files Browse the repository at this point in the history
A new proposal.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Jun 24, 2021
1 parent 5330378 commit ccee478
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lnprototest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from .commit_tx import Commit, HTLC, UpdateCommit
from .utils import Side, regtest_hash, privkey_expand
from .funding import AcceptFunding, CreateFunding, CreateDualFunding, Funding, AddInput, AddOutput, FinalizeFunding, AddWitnesses
from .proposals import dual_fund_csv
from .proposals import dual_fund_csv, channel_type_csv

__all__ = [
"EventError",
Expand Down Expand Up @@ -90,5 +90,5 @@
"privkey_expand",
"Wait",
"dual_fund_csv",
"Wait",
"channel_type_csv",
]
11 changes: 11 additions & 0 deletions lnprototest/proposals.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,14 @@
"msgdata,ack_rbf,channel_id,channel_id,",
"msgdata,ack_rbf,funding_satoshis,u64,",
]

# This is https://github.com/lightningnetwork/lightning-rfc/pull/880
channel_type_csv = [
"subtype,channel_type",
"subtypedata,channel_type,len,u16,",
"subtypedata,channel_type,features,byte,len",
"tlvtype,open_channel_tlvs,channel_types,1",
"tlvdata,open_channel_tlvs,channel_types,types,channel_type,...",
"tlvtype,accept_channel_tlvs,channel_type,1",
"tlvdata,accept_channel_tlvs,channel_type,type,channel_type,",
]

0 comments on commit ccee478

Please sign in to comment.