Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(lnd): enable unconfirmed outputs to be spent
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Oct 4, 2020
1 parent 3013b6f commit 5632d58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions renderer/reducers/transaction/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>} Thunk
*/
export const sendCoins = ({
Expand All @@ -200,6 +201,7 @@ export const sendCoins = ({
targetConf,
satPerByte,
isCoinSweep,
spendUnconfirmed = true,

This comment has been minimized.

Copy link
@bessgrinds

bessgrinds Aug 27, 2022

renderer/reducers/transaction/reducer.js

}) => async dispatch => {
// backend needs amount in satoshis no matter what currency we are using
const amount = convert(cryptoUnit, 'sats', value)

This comment has been minimized.

Copy link
@bessgrinds

bessgrinds Aug 27, 2022

30000

Expand All @@ -215,6 +217,7 @@ export const sendCoins = ({
targetConf,
satPerByte,
sendAll: isCoinSweep,
spendUnconfirmed,
}
dispatch(sendTransaction(payload))

Expand Down

0 comments on commit 5632d58

Please sign in to comment.