mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 14:45:23 +01:00
routerrpc: expose preimage on the htlc level
This commit is contained in:
parent
185813abb1
commit
8e7c0757ec
@ -214,6 +214,11 @@
|
||||
"failure": {
|
||||
"$ref": "#/definitions/lnrpcFailure",
|
||||
"description": "Detailed htlc failure info."
|
||||
},
|
||||
"preimage": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "The preimage that was used to settle the HTLC."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -872,6 +872,7 @@ func (r *RouterBackend) MarshalHTLCAttempt(
|
||||
rpcAttempt.ResolveTimeNs = MarshalTimeNano(
|
||||
htlc.Settle.SettleTime,
|
||||
)
|
||||
rpcAttempt.Preimage = htlc.Settle.Preimage[:]
|
||||
|
||||
case htlc.Failure != nil:
|
||||
rpcAttempt.Status = lnrpc.HTLCAttempt_FAILED
|
||||
|
1476
lnrpc/rpc.pb.go
1476
lnrpc/rpc.pb.go
File diff suppressed because it is too large
Load Diff
@ -2998,6 +2998,9 @@ message HTLCAttempt {
|
||||
|
||||
// Detailed htlc failure info.
|
||||
Failure failure = 5;
|
||||
|
||||
// The preimage that was used to settle the HTLC.
|
||||
bytes preimage = 6;
|
||||
}
|
||||
|
||||
message ListPaymentsRequest {
|
||||
|
@ -2944,6 +2944,11 @@
|
||||
"failure": {
|
||||
"$ref": "#/definitions/lnrpcFailure",
|
||||
"description": "Detailed htlc failure info."
|
||||
},
|
||||
"preimage": {
|
||||
"type": "string",
|
||||
"format": "byte",
|
||||
"description": "The preimage that was used to settle the HTLC."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user