Skip to content

Commit

Permalink
fix(Eth): unconfirmed tx - correct lastTxFuse, check latestTx, which …
Browse files Browse the repository at this point in the history
…is a string
  • Loading branch information
plondon committed May 30, 2018
1 parent 98ac6ba commit 8f54d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/blockchain-wallet-v4/src/redux/payment/eth/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ export default ({ api }) => {
let unconfirmedTx = false
if (latestTx) {
const ethOptionsR = yield select(S.walletOptions.getEthereumTxFuse)
const lastTxFuse = ethOptionsR.getOrElse(86400000)
const lastTxFuse = ethOptionsR.getOrElse(86400) * 1000
try {
const latestTxStatus = yield call(api.getEthereumTransaction, latestTx.txHash)
const latestTxStatus = yield call(api.getEthereumTransaction, latestTx)
if (!latestTxStatus.blockNumber && latestTxTimestamp + lastTxFuse > Date.now()) {
unconfirmedTx = true
}
Expand Down

0 comments on commit 8f54d73

Please sign in to comment.