mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-20 13:27:51 +02:00
Merge pull request #59 from wpaulino/close-account-panic-fix
rpc: check nil funds destination in CloseAccountRequest
This commit is contained in:
commit
280d0e041d
1 changed files with 3 additions and 0 deletions
|
|
@ -824,6 +824,9 @@ func (s *rpcServer) CloseAccount(ctx context.Context,
|
|||
}
|
||||
|
||||
feeExpr = account.OutputsWithImplicitFee(outputs)
|
||||
|
||||
case nil:
|
||||
return nil, errors.New("a funds destination must be specified")
|
||||
}
|
||||
|
||||
dbOrders, err := s.server.db.GetOrders()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue