File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,25 @@ EXPECT_INIT=expect-send: type=init
74
74
# If you require `option_static_remotekey`, you will advertize it even.
75
75
1. $EXPECT_INIT features=1000/3000 option_static_remotekey/even
76
76
77
+ # The init message contains the network `chain_hash`
78
+ 1. $EXPECT_INIT tlvs=012006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f
79
+ # Sending the correct `chain_hash`: no error
80
+ 2. recv: type=init globalfeatures=020000 features=2000 tlvs=012006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f
81
+
82
+ 1. $EXPECT_INIT tlvs=012006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f
83
+ # Sending the correct `chain_hash` as part of an array with unknown `chain_hash`s: no error
84
+ 2. recv: type=init globalfeatures= features= tlvs=014006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f6fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000
85
+
86
+ # Wrong `chain_hash`, and only one provided: error
87
+ 1. $EXPECT_INIT tlvs=012006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f
88
+ 2. recv: type=init globalfeatures=020000 features=2000 tlvs=01206fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000
89
+ 3. expect-error:
90
+
91
+ # Many `chain_hash` provided, but no common one : error
92
+ 1. $EXPECT_INIT tlvs=012006226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f
93
+ 2. recv: type=init globalfeatures=020000 features=2000 tlvs=01406fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d61900000000005fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000
94
+ 3. expect-error:
95
+
77
96
# Note: it's undefined what you'll do if implementation requires
78
97
# an option and isn't offered it. The recipient of the required feature
79
98
# bit should notice the requirement and error.
You can’t perform that action at this time.
0 commit comments