Skip to content

Commit

Permalink
added roundtrip serialization test on channel_ready with alias
Browse files Browse the repository at this point in the history
  • Loading branch information
pm47 committed Jun 6, 2022
1 parent 391a3a1 commit ea388c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ class LightningMessageCodecsSpec extends AnyFunSuite {
val funding_created = FundingCreated(randomBytes32(), bin32(0), 3, randomBytes64())
val funding_signed = FundingSigned(randomBytes32(), randomBytes64())
val channel_ready = ChannelReady(randomBytes32(), point(2))
val channel_ready_alias = ChannelReady(randomBytes32(), point(2), TlvStream(ChannelReadyTlv.ShortChannelIdTlv(ShortChannelId(123456))))
val update_fee = UpdateFee(randomBytes32(), FeeratePerKw(2 sat))
val shutdown = Shutdown(randomBytes32(), bin(47, 0))
val closing_signed = ClosingSigned(randomBytes32(), 2 sat, randomBytes64())
Expand Down Expand Up @@ -388,7 +389,7 @@ class LightningMessageCodecsSpec extends AnyFunSuite {
val unknown_message = UnknownMessage(tag = 60000, data = ByteVector32.One.bytes)

val msgs: List[LightningMessage] =
open :: accept :: funding_created :: funding_signed :: channel_ready :: update_fee :: shutdown :: closing_signed ::
open :: accept :: funding_created :: funding_signed :: channel_ready :: channel_ready_alias :: update_fee :: shutdown :: closing_signed ::
update_add_htlc :: update_fulfill_htlc :: update_fail_htlc :: update_fail_malformed_htlc :: commit_sig :: revoke_and_ack ::
channel_announcement :: node_announcement :: channel_update :: gossip_timestamp_filter :: query_short_channel_id :: query_channel_range :: reply_channel_range :: announcement_signatures ::
ping :: pong :: channel_reestablish :: unknown_message :: Nil
Expand Down

0 comments on commit ea388c5

Please sign in to comment.