From 5632d58d32f091a0522959b3841d7d235b9e8b0a Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Sun, 4 Oct 2020 15:10:29 +0100 Subject: [PATCH] fix(lnd): enable unconfirmed outputs to be spent --- renderer/reducers/transaction/reducer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderer/reducers/transaction/reducer.js b/renderer/reducers/transaction/reducer.js index 49250ad1063..25ea108b055 100644 --- a/renderer/reducers/transaction/reducer.js +++ b/renderer/reducers/transaction/reducer.js @@ -191,6 +191,7 @@ export const transactionFailed = ({ internalId, error }) => async (dispatch, get * @param {number} options.targetConf Number of blocks to target for conf time * @param {number} options.satPerByte Sat per byte fee rate to apply * @param {boolean} options.isCoinSweep Boolean indicating whether this is a coin sweep (will send all funds). + * @param {boolean} options.spendUnconfirmed Whether unconfirmed outputs should be used as inputs for the transaction. * @returns {(dispatch:Function) => Promise} Thunk */ export const sendCoins = ({ @@ -200,6 +201,7 @@ export const sendCoins = ({ targetConf, satPerByte, isCoinSweep, + spendUnconfirmed = true, }) => async dispatch => { // backend needs amount in satoshis no matter what currency we are using const amount = convert(cryptoUnit, 'sats', value) @@ -215,6 +217,7 @@ export const sendCoins = ({ targetConf, satPerByte, sendAll: isCoinSweep, + spendUnconfirmed, } dispatch(sendTransaction(payload))