Skip to content

Commit

Permalink
Merge pull request rustyrussell#117 from rustyrussell/macros/bug-fixing
Browse files Browse the repository at this point in the history
fix: this is fixing the error caused by the private gossip update
  • Loading branch information
vincenzopalazzo authored Feb 1, 2024
2 parents 20d938b + 9bc3289 commit d72a87b
Show file tree
Hide file tree
Showing 5 changed files with 407 additions and 338 deletions.
3 changes: 1 addition & 2 deletions docker/Dockerfile.clightning
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ RUN git config --global user.name "John Doe" && \
git config --global user.email johndoe@example.com && \
git clone https://github.com/ElementsProject/lightning.git && \
cd lightning && \
poetry config virtualenvs.create false && \
poetry install && \
pip3 install mako && \
./configure && \
make -j$(nproc)

Expand Down
2 changes: 1 addition & 1 deletion lnprototest/clightning/clightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def start(self, also_bitcoind: bool = True) -> None:
"--bitcoin-rpcuser=rpcuser",
"--bitcoin-rpcpassword=rpcpass",
f"--bitcoin-rpcconnect=localhost:{self.bitcoind.port}",
"--log-level=io",
"--log-level=debug",
"--log-file=log",
"--htlc-maximum-msat=2000sat",
]
Expand Down
7 changes: 7 additions & 0 deletions lnprototest/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,13 @@ def ignore_all_gossip(msg: Message) -> Optional[List[Message]]:
return []
return ExpectMsg.ignore_pings(msg)

@staticmethod
def ignore_channel_update(msg: Message) -> Optional[List[Message]]:
"""Ignore any channel update messages. Respond to pings."""
if msg.messagetype.number == 258:
return []
return ExpectMsg.ignore_pings(msg)

def __init__(
self,
msgtypename: str,
Expand Down
Loading

0 comments on commit d72a87b

Please sign in to comment.