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
@@ -5127,6 +5127,14 @@
5127
5127
"type": "integer",
5128
5128
"format": "int64",
5129
5129
"description": "A failure type-dependent block height."
5130
+
},
5131
+
"hold_times": {
5132
+
"type": "array",
5133
+
"items": {
5134
+
"type": "integer",
5135
+
"format": "int64"
5136
+
},
5137
+
"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
@@ -860,6 +860,14 @@
860
860
"type": "integer",
861
861
"format": "int64",
862
862
"description": "A failure type-dependent block height."
863
+
},
864
+
"hold_times": {
865
+
"type": "array",
866
+
"items": {
867
+
"type": "integer",
868
+
"format": "int64"
869
+
},
870
+
"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