mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 23:53:41 +02:00
watchtower/wtserver: add NoAckCreateSession for testing
This commit is contained in:
@@ -122,6 +122,13 @@ func (s *Server) handleCreateSession(peer Peer, id *wtdb.SessionID,
|
||||
func (s *Server) replyCreateSession(peer Peer, id *wtdb.SessionID,
|
||||
code wtwire.ErrorCode, lastApplied uint16, data []byte) error {
|
||||
|
||||
if s.cfg.NoAckCreateSession {
|
||||
return &connFailure{
|
||||
ID: *id,
|
||||
Code: code,
|
||||
}
|
||||
}
|
||||
|
||||
msg := &wtwire.CreateSessionReply{
|
||||
Code: code,
|
||||
LastApplied: lastApplied,
|
||||
|
Reference in New Issue
Block a user