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
lnrpc+payments+routing: expose attributable failure hold times via RPC
Add a hold_times field to the Failure proto message so that callers of
SendPaymentV2 can see per-hop hold times reported via attributable
errors. The hold times are persisted in the KV store (backward
compatible via trailing optional read) and populated in both the
database and streaming RPC paths.
Changes:
- lnrpc/lightning.proto: add repeated uint32 hold_times = 10
- payments/db: add HoldTimes to HTLCFailInfo + KV serialization
- routing: copy HoldTimes from ForwardingError to HTLCFailInfo
- lnrpc/routerrpc: populate HoldTimes in both marshallHtlcFailure
and marshallError
Copy file name to clipboardExpand all lines: lnrpc/lightning.swagger.json
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5023,6 +5023,14 @@
5023
5023
"type": "integer",
5024
5024
"format": "int64",
5025
5025
"description": "A failure type-dependent block height."
5026
+
},
5027
+
"hold_times": {
5028
+
"type": "array",
5029
+
"items": {
5030
+
"type": "integer",
5031
+
"format": "int64"
5032
+
},
5033
+
"description": "An array of hold times (in 100ms units) as reported by the nodes along\nthe route via attributable errors. The first element corresponds to the\nfirst hop after the sender, with greater indices indicating nodes\nfurther along the route. Multiply by 100 to get milliseconds. This\nfield is only populated when the error includes attribution data."
Copy file name to clipboardExpand all lines: lnrpc/routerrpc/router.swagger.json
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -905,6 +905,14 @@
905
905
"type": "integer",
906
906
"format": "int64",
907
907
"description": "A failure type-dependent block height."
908
+
},
909
+
"hold_times": {
910
+
"type": "array",
911
+
"items": {
912
+
"type": "integer",
913
+
"format": "int64"
914
+
},
915
+
"description": "An array of hold times (in 100ms units) as reported by the nodes along\nthe route via attributable errors. The first element corresponds to the\nfirst hop after the sender, with greater indices indicating nodes\nfurther along the route. Multiply by 100 to get milliseconds. This\nfield is only populated when the error includes attribution data."
0 commit comments