1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-19 01:43:22 +01:00

Fix typos in various comments (#2805)

This commit is contained in:
Thabokani 2024-01-02 16:31:57 +08:00 committed by GitHub
parent e05ed03f2f
commit 63a1d77baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -146,7 +146,7 @@ done;
# jq filter parses response body for error message
jq_filter='if type=="object" and .error != null then .error else .';
# apply special jq filter if we are in "short" ouput mode -- only for specific commands such as 'channels'
# apply special jq filter if we are in "short" output mode -- only for specific commands such as 'channels'
if [ "$short" = true ]; then
jq_channel_filter="{ nodeId, shortChannelId: .data.shortIds.real.realScid, channelId, state, commitments: (.data.commitments.active | map({balanceSat: (try (.localCommit.spec.toLocal / 1000 | floor) catch null), capacitySat: .fundingTx.amountSatoshis, fundingTxIndex: .fundingTxIndex, channelPoint: .fundingTx.outPoint})) }";
case $api_endpoint in

View File

@ -189,10 +189,10 @@ class TransportHandler[T: ClassTag](keyPair: KeyPair, rs: Option[ByteVector], co
stay() using d.copy(decryptor = dec1, unackedReceived = unackedReceived1)
case Event(ReadAck(msg: T), d: NormalData[T@unchecked]) =>
// how many occurences of this message are still unacked?
// how many occurrences of this message are still unacked?
val remaining = d.unackedReceived.getOrElse(msg, 0) - 1
log.debug("acking message {}", msg)
// if all occurences have been acked then we remove the entry from the map
// if all occurrences have been acked then we remove the entry from the map
val unackedReceived1 = if (remaining > 0) d.unackedReceived + (msg -> remaining) else d.unackedReceived - msg
if (unackedReceived1.isEmpty) {
log.debug("last incoming message was acked, resuming reading")

View File

@ -123,7 +123,7 @@ class PaymentLifecycle(nodeParams: NodeParams, cfg: SendPaymentConfig, router: A
// retry with another channel
handleLocalFail(d, ChannelFailureException, isFatal = false)
case HtlcResult.DisconnectedBeforeSigned(_) =>
// a disconnection occured before the outgoing htlc got signed
// a disconnection occurred before the outgoing htlc got signed
// again, we consider it a local error and treat is as such
handleLocalFail(d, DisconnectedException, isFatal = false)
}

View File

@ -2,7 +2,7 @@ eclair {
enable-kamon = false
front {
// To be overriden with the same key as the backend, so that the front has the same nodeid
// To be overridden with the same key as the backend, so that the front has the same nodeid
priv-key-provider = "seed" // aws-sm (AWS Secrets Manager) or env (environment variable) or seed (seed.dat)
priv-key = ${?NODE_PRIV_KEY} // used if priv-key-provider = env
aws-sm.priv-key-name = "node-priv-key" // used if priv-key-provider = aws-sm