looprpc: expose server message to clients

This commit is contained in:
Joost Jager 2020-06-30 14:10:33 +02:00
parent 8b215edaa2
commit 1869ad670f
No known key found for this signature in database
GPG key ID: A61B9D4C393C59C7
10 changed files with 143 additions and 104 deletions

View file

@ -248,6 +248,10 @@ type LoopInSwapInfo struct { // nolint
// HtlcAddressNP2WSH contains the nested segwit swap htlc address,
// where the loop-in funds may be paid.
HtlcAddressNP2WSH btcutil.Address
// ServerMessages is the human-readable message received from the loop
// server.
ServerMessage string
}
// LoopOutSwapInfo contains essential information of a loop-out swap after the
@ -259,6 +263,10 @@ type LoopOutSwapInfo struct { // nolint:golint
// HtlcAddressP2WSH contains the native segwit swap htlc address that
// the server will publish to.
HtlcAddressP2WSH btcutil.Address
// ServerMessages is the human-readable message received from the loop
// server.
ServerMessage string
}
// SwapInfoKit contains common swap info fields.