mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
openchannel: return error on hash creation failure
Return an error instead of just logging when chainhash.NewHash fails in the ChanPending handler. The hash variable would be nil and crash on the subsequent String() call.
This commit is contained in:
parent
eaf7883bcf
commit
52d884cec1
1 changed files with 2 additions and 2 deletions
|
|
@ -693,8 +693,8 @@ func (m *Manager) openChannelPsbt(ctx context.Context,
|
|||
update.ChanPending.Txid,
|
||||
)
|
||||
if err != nil {
|
||||
log.Infof("Error creating hash for channel "+
|
||||
"open tx: %v", err)
|
||||
return nil, fmt.Errorf("error creating "+
|
||||
"hash for channel open tx: %w", err)
|
||||
}
|
||||
|
||||
chanOutpoint := &wire.OutPoint{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue