mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-22 22:25:26 +01:00
using 2 bytes to code message type
This commit is contained in:
parent
e182afd6b7
commit
ed56401333
1 changed files with 14 additions and 14 deletions
|
@ -113,19 +113,19 @@ object Codecs {
|
|||
("htlcTimeoutSignature" | listofbinarydata(64))
|
||||
).as[RevokeAndAck]
|
||||
|
||||
val lightningMessageCodec = discriminated[LightningMessage].by(uint32)
|
||||
.typecase(32L, openChannelCodec)
|
||||
.typecase(33L, acceptChannelCodec)
|
||||
.typecase(34L, fundingCreatedCodec)
|
||||
.typecase(35L, fundingSignedCodec)
|
||||
.typecase(36L, fundingLockedCodec)
|
||||
.typecase(37L, updateFeeCodec)
|
||||
.typecase(38L, shutdownCodec)
|
||||
.typecase(39L, closingSignedCodec)
|
||||
.typecase(128L, addHtlcCodec)
|
||||
.typecase(130L, updateFulfillHtlcCodec)
|
||||
.typecase(131L, updateFailHtlcCodec)
|
||||
.typecase(132L, commitSigCodec)
|
||||
.typecase(133L, revokeAndAckCodec)
|
||||
val lightningMessageCodec = discriminated[LightningMessage].by(uint16)
|
||||
.typecase(32, openChannelCodec)
|
||||
.typecase(33, acceptChannelCodec)
|
||||
.typecase(34, fundingCreatedCodec)
|
||||
.typecase(35, fundingSignedCodec)
|
||||
.typecase(36, fundingLockedCodec)
|
||||
.typecase(37, updateFeeCodec)
|
||||
.typecase(38, shutdownCodec)
|
||||
.typecase(39, closingSignedCodec)
|
||||
.typecase(128, addHtlcCodec)
|
||||
.typecase(130, updateFulfillHtlcCodec)
|
||||
.typecase(131, updateFailHtlcCodec)
|
||||
.typecase(132, commitSigCodec)
|
||||
.typecase(133, revokeAndAckCodec)
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue