Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move recommended_feerates message to CONNECTED state #2984

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,10 @@ class Peer(val nodeParams: NodeParams,
replyTo_opt.foreach(_ ! MessageRelay.Sent(messageId))
stay()

case Event(msg: RecommendedFeerates, _) =>
log.info("our peer recommends the following feerates: funding={}, commitment={}", msg.fundingFeerate, msg.commitmentFeerate)
stay()

case Event(unknownMsg: UnknownMessage, d: ConnectedData) if nodeParams.pluginMessageTags.contains(unknownMsg.tag) =>
context.system.eventStream.publish(UnknownMessageReceived(self, remoteNodeId, unknownMsg, d.connectionInfo))
stay()
Expand Down Expand Up @@ -623,10 +627,6 @@ class Peer(val nodeParams: NodeParams,
stay()
}

case Event(msg: RecommendedFeerates, _) =>
log.info("our peer recommends the following feerates: funding={}, commitment={}", msg.fundingFeerate, msg.commitmentFeerate)
stay()

case Event(current: CurrentBlockHeight, d) =>
// If we have pending will_add_htlc that are timing out, it doesn't make any sense to keep them, even if we have
// already funded the corresponding channel: our peer will force-close if we relay them.
Expand Down
Loading