From a6d274aa370a40726ec7ba6f401b2812dd7a122a Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Wed, 4 Oct 2017 11:49:30 -0500 Subject: [PATCH] fix(channels): force close channels --- app/components/GlobalError/GlobalError.js | 5 +++-- app/lnd/methods/channelController.js | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/components/GlobalError/GlobalError.js b/app/components/GlobalError/GlobalError.js index 63a4f0a7..a0e8b2ab 100644 --- a/app/components/GlobalError/GlobalError.js +++ b/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 (
@@ -12,6 +11,8 @@ const GlobalError = ({ error }) => { ) } -GlobalError.propTypes = {} +GlobalError.propTypes = { + error: PropTypes.string +} export default GlobalError diff --git a/app/lnd/methods/channelController.js b/app/lnd/methods/channelController.js index a508904b..dd328ad0 100644 --- a/app/lnd/methods/channelController.js +++ b/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) =>