Skip to content

Commit 7ef3c4b

Browse files
authored
Nits (#3203)
1 parent 6dd9f76 commit 7ef3c4b

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

docs/ManagingBitcoinCoreKeys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ This is an example of `eclair-signer.conf` configuration file:
4242

4343
Restart eclair, without changing `eclair.bitcoind.wallet` (so it uses the default wallet or the previously used bitcoin wallet for existing nodes).
4444

45-
Create a new empty, decriptor-enabled wallet on your new Bitcoin Core node.
45+
Create a new empty, descriptor-enabled wallet on your new Bitcoin Core node.
4646

4747
:warning: The name must match the one that you set in `eclair-signer.conf` (here we use "eclair")
4848

eclair-core/src/main/scala/fr/acinq/eclair/channel/fsm/Channel.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ class Channel(val nodeParams: NodeParams, val channelKeys: ChannelKeys, val wall
11081108
// commitment format and will simply apply the previous commitment format.
11091109
val nextCommitmentFormat = msg.channelType_opt match {
11101110
case Some(ChannelTypes.SimpleTaprootChannelsPhoenix) if parentCommitment.commitmentFormat == UnsafeLegacyAnchorOutputsCommitmentFormat =>
1111-
log.info("accepting upgrade to {} during splice from commitment format {}", ChannelTypes.SimpleTaprootChannelsPhoenix, parentCommitment.commitmentFormat)
1111+
log.info("accepting upgrade to {} during splice from commitment format {}", PhoenixSimpleTaprootChannelCommitmentFormat, parentCommitment.commitmentFormat)
11121112
PhoenixSimpleTaprootChannelCommitmentFormat
11131113
case Some(channelType) =>
11141114
log.info("rejecting upgrade to {} during splice from commitment format {}", channelType, parentCommitment.commitmentFormat)

eclair-core/src/main/scala/fr/acinq/eclair/crypto/keymanager/LocalOnChainKeyManager.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class LocalOnChainKeyManager(override val walletName: String, seed: ByteVector,
163163
for {
164164
spent <- spentAmount(psbt, ourInputs)
165165
change <- changeAmount(psbt, ourOutputs)
166-
_ = logger.debug(s"signing txid=${psbt.global.tx.txid} fees=${psbt.computeFees()} spent=$spent change=$change")
166+
_ = logger.info(s"signing txid=${psbt.global.tx.txid} fees=${psbt.computeFees()} spent=$spent change=$change")
167167
_ <- Try {
168168
ourOutputs.foreach(i => require(isOurOutput(psbt, i), s"could not verify output $i: bitcoin core may be malicious"))
169169
}

eclair-core/src/main/scala/fr/acinq/eclair/io/PeerConnection.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ class PeerConnection(keyPair: KeyPair, conf: PeerConnection.Conf, switchboard: A
8686
when(AUTHENTICATING) {
8787
case Event(TransportHandler.HandshakeCompleted(remoteNodeId), d: AuthenticatingData) =>
8888
cancelTimer(AUTH_TIMER)
89-
log.info(s"connection authenticated (direction=${if (d.pendingAuth.outgoing) "outgoing" else "incoming"})")
89+
Logs.withMdc(diagLog)(Logs.mdc(remoteNodeId_opt = Some(remoteNodeId))) {
90+
log.info(s"connection authenticated (direction=${if (d.pendingAuth.outgoing) "outgoing" else "incoming"})")
91+
}
9092
Metrics.PeerConnectionsConnecting.withTag(Tags.ConnectionState, Tags.ConnectionStates.Authenticated).increment()
9193
switchboard ! Authenticated(self, remoteNodeId, d.pendingAuth.outgoing)
9294
goto(BEFORE_INIT) using BeforeInitData(remoteNodeId, d.pendingAuth, d.transport, d.isPersistent)
@@ -133,7 +135,6 @@ class PeerConnection(keyPair: KeyPair, conf: PeerConnection.Conf, switchboard: A
133135
case Event(remoteInit: protocol.Init, d: InitializingData) =>
134136
cancelTimer(INIT_TIMER)
135137
d.transport ! TransportHandler.ReadAck(remoteInit)
136-
137138
log.info(s"peer is using features=${remoteInit.features}, networks=${remoteInit.networks.mkString(",")}")
138139
remoteInit.remoteAddress_opt.foreach(address => log.info("peer reports that our IP address is {} (public={})", address.toString, NodeAddress.isPublicIPAddress(address)))
139140

eclair-core/src/main/scala/fr/acinq/eclair/wire/protocol/FailureMessage.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,7 @@ object FailureMessageCodecs {
192192
)
193193

194194
/**
195-
* An onion-encrypted failure from an intermediate node:
196-
*
197-
* | HMAC(32 bytes) | failure message length (2 bytes) | failure message | pad length (2 bytes) | pad |
195+
* An onion-encrypted failure from an intermediate node.
198196
*
199197
* Bolt 4: SHOULD set pad such that the failure_len plus pad_len is equal to 256: by always using the same size we
200198
* ensure error messages are indistinguishable.

0 commit comments

Comments
 (0)