Skip to content

Commit

Permalink
Reorder functions
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bast committed Oct 22, 2024
1 parent 13f3819 commit 2d728ad
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ object Deserialization {
lastSent = readLightningMessage() as ChannelReady
)

private fun Input.readWaitForFundingSigned() = WaitForFundingSigned(
channelParams = readChannelParams(),
signingSession = readInteractiveTxSigningSession(),
remoteSecondPerCommitmentPoint = readPublicKey(),
liquidityPurchase = readNullable { readLiquidityPurchase() },
channelOrigin = readNullable { readChannelOrigin() }
)

private fun Input.readWaitForFundingSignedWithPushAmount(): WaitForFundingSigned {
val channelParams = readChannelParams()
val signingSession = readInteractiveTxSigningSession()
Expand All @@ -78,14 +86,6 @@ object Deserialization {
return WaitForFundingSigned(channelParams, signingSession, remoteSecondPerCommitmentPoint, liquidityPurchase, channelOrigin)
}

private fun Input.readWaitForFundingSigned() = WaitForFundingSigned(
channelParams = readChannelParams(),
signingSession = readInteractiveTxSigningSession(),
remoteSecondPerCommitmentPoint = readPublicKey(),
liquidityPurchase = readNullable { readLiquidityPurchase() },
channelOrigin = readNullable { readChannelOrigin() }
)

private fun Input.readWaitForFundingSignedLegacy(): WaitForFundingSigned {
val channelParams = readChannelParams()
val signingSession = readInteractiveTxSigningSession()
Expand Down

0 comments on commit 2d728ad

Please sign in to comment.