Skip to content

Commit 12a439b

Browse files
committed
fix: reject BTC dust transactions in chat when node validation fails
1 parent 369a5cf commit 12a439b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/store/modules/btc-base/btc-base-actions.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,18 @@ function createActions(options) {
233233
} catch (error) {
234234
context.commit('transactions', [{ hash: signedTransaction.txid, status: 'REJECTED' }])
235235
PendingTxStore.remove(context.state.crypto)
236+
237+
if (admAddress) {
238+
context.commit(
239+
'chat/updateMessage',
240+
{
241+
partnerId: admAddress,
242+
id: signedTransaction.txid,
243+
status: 'REJECTED'
244+
},
245+
{ root: true }
246+
)
247+
}
236248
throw error
237249
}
238250
},

0 commit comments

Comments
 (0)