Browse Source

fix(channels): force close channels

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
a6d274aa37
  1. 5
      app/components/GlobalError/GlobalError.js
  2. 3
      app/lnd/methods/channelController.js

5
app/components/GlobalError/GlobalError.js

@ -3,7 +3,6 @@ import PropTypes from 'prop-types'
import styles from './GlobalError.scss'
const GlobalError = ({ error }) => {
console.log('error: ', error)
if (!error) { return null }
return (
<div className={styles.container}>
@ -12,6 +11,8 @@ const GlobalError = ({ error }) => {
)
}
GlobalError.propTypes = {}
GlobalError.propTypes = {
error: PropTypes.string
}
export default GlobalError

3
app/lnd/methods/channelController.js

@ -72,7 +72,8 @@ export function closeChannel(lnd, event, payload) {
channel_point: {
funding_txid: BufferUtil.hexToBuffer(tx),
output_index: Number(payload.channel_point.output_index)
}
},
force: true
}
return new Promise((resolve, reject) =>

Loading…
Cancel
Save