forked from lightning/bolts
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/events: test unknown messages.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
- Loading branch information
1 parent
6e9f320
commit 4e337f0
Showing
5 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Init exchange, with unknown messages | ||
# | ||
# BOLT #1: | ||
# The receiving node: | ||
#... | ||
# - upon receiving unknown _odd_ feature bits that are non-zero: | ||
# - MUST ignore the bit. | ||
# - upon receiving unknown _even_ feature bits that are non-zero: | ||
# - MUST fail the connection. | ||
|
||
1. connect: privkey=0000000000000000000000000000000000000000000000000000000000000003 | ||
2. expect-send: type=init conn=0000000000000000000000000000000000000000000000000000000000000003 | ||
3. recv: type=init globalfeatures= localfeatures= | ||
|
||
1. nothing | ||
|
||
# Unknown odd is OK. | ||
1. recv: type=9999 | ||
|
||
# Unknown even causes error. | ||
1. recv: type=10000 | ||
2. expect-error: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters