Merge pull request #821 from shocknet/boufni95-patch-1

remove satxvbyte check
This commit is contained in:
Justin (shocknet) 2025-06-26 16:28:10 -04:00 committed by GitHub
commit 6e24589aed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
@ -414,4 +413,4 @@ export default (mainHandler: Main): Types.ServerMethods => {
return mainHandler.appUserManager.GetHttpCreds(ctx)
},
}
}
}