You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We add metrics for liquidity ads (purchased amount and mining fee
refund).
We refactor the interactive-tx metrics to record them *after* tx
validation, instead of *before*. We also remove the input/output
count for the "shared" case, since it's always 0 or 1.
valInteractiveTxInputsPerSession=Kamon.histogram("channels.interactive-tx.inputs-per-session", "Interactive tx inputs per session")
39
44
valInteractiveTxOutputsPerSession=Kamon.histogram("channels.interactive-tx.outputs-per-session", "Interactive tx outputs per session")
45
+
valLiquidityPurchaseAmount=Kamon.histogram("channels.interactive-tx.liquidity-purchase-amount", "Amount of liquidity purchased (if positive) or sold (if negative)")
46
+
valLiquidityPurchaseMiningFeeDiff=Kamon.histogram("channels.interactive-tx.liquidity-purchase-mining-fee-diff", "When selling liquidity, difference between the refunded mining fee and the actual mining fee paid")
// Global, not "per session". The goal is to measure the total number of inputs/outputs and distribution of amounts across all interactive-tx sessions.
// Note that we explicitly want to record a 0 value when we don't have any change output: it lets us see how many sessions don't need change, which is the best outcome.
Copy file name to clipboardExpand all lines: eclair-core/src/main/scala/fr/acinq/eclair/channel/fund/InteractiveTxBuilder.scala
+1-16Lines changed: 1 addition & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -783,22 +783,6 @@ private class InteractiveTxBuilder(replyTo: ActorRef[InteractiveTxBuilder.Respon
783
783
vallocalOutputs= session.localOutputs.collect { caseo: Output.Local=> o }
784
784
valremoteOutputs= session.remoteOutputs.collect { caseo: Output.Remote=> o }
785
785
786
-
// Global, not "per session". The goal is to measure the total number of inputs/outputs and distribution of amounts across all interactive-tx sessions.
0 commit comments