File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed
hooks/queries/transaction Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,12 @@ import {
1515export function retryFactory ( crypto : CryptoSymbol , transactionId : string ) {
1616 const txFetchInfo = getTxFetchInfo ( crypto )
1717
18- return ( failureCount : number ) : boolean => {
18+ return ( failureCount : number , error : any ) : boolean => {
19+ // Don't retry BTC transactions on 404 (dust amount rejections)
20+ if ( crypto === 'BTC' && error ?. response ?. status === 404 ) {
21+ return false
22+ }
23+
1924 const pendingTransaction = PendingTxStore . get ( crypto )
2025 const isPendingTransaction = pendingTransaction ?. id === transactionId
2126
Original file line number Diff line number Diff line change @@ -233,18 +233,6 @@ 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- }
248236 throw error
249237 }
250238 } ,
You can’t perform that action at this time.
0 commit comments