lnd.xprv/chanacceptor
carla 38fd7d206f
multi: add custom error messages to channel acceptor
This commit adds an optional error message to the channel acceptor's
reponse to allow operators to inform (or insult) unsuccessful channel
initiators as to the reason for their rejection.

This field is added in addition to the existing accept field to maintain
backwards compatibity. If we were to deprecate accept and interpret a
non-nil error as rejecting the channel, then received a response with
accept=false and a nil error, the server cannot tell whether this is a
legacy rejection or new mesage type acceptance (due to nil error),
so we keep both fields.
2020-11-10 11:38:47 +02:00
..
acceptor_test.go multi: add custom error messages to channel acceptor 2020-11-10 11:38:47 +02:00
chainedacceptor.go multi: add custom error messages to channel acceptor 2020-11-10 11:38:47 +02:00
errors.go multi: add custom error messages to channel acceptor 2020-11-10 11:38:47 +02:00
interface.go multi: add custom error messages to channel acceptor 2020-11-10 11:38:47 +02:00
log.go multi: move channel acceptor logic out of rpcserver 2020-11-10 11:38:45 +02:00
rpcacceptor_test.go multi: add custom error messages to channel acceptor 2020-11-10 11:38:47 +02:00
rpcacceptor.go multi: add custom error messages to channel acceptor 2020-11-10 11:38:47 +02:00