Update index.ts
This commit is contained in:
parent
123105e4c5
commit
910ae0cec4
1 changed files with 2 additions and 3 deletions
|
|
@ -88,8 +88,7 @@ export default (mainHandler: Main): Types.ServerMethods => {
|
|||
},
|
||||
CloseChannel: async ({ ctx, req }) => {
|
||||
const err = Types.CloseChannelRequestValidate(req, {
|
||||
funding_txid_CustomCheck: chanId => chanId !== '',
|
||||
sat_per_v_byte_CustomCheck: spv => spv > 0
|
||||
funding_txid_CustomCheck: chanId => chanId !== ''
|
||||
})
|
||||
if (err != null) throw new Error(err.message)
|
||||
return mainHandler.adminManager.CloseChannel(req)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue