Skip to content

Commit 23daddf

Browse files
committed
Changed tx execution delay
1 parent ee06681 commit 23daddf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/modules/tx/epics/txExecEpic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import defaultSchema from 'lib/tx/schema/defaultSchema';
1313
import fileObservable from 'modules/io/util/fileObservable';
1414
import { enqueueNotification } from 'modules/notifications/actions';
1515

16-
const TX_STATUS_INTERVAL = 3000;
16+
const TX_STATUS_INTERVAL = 2000;
1717

1818
export const txExecEpic: Epic = (action$, store, { api }) => action$.ofAction(txExec.started)
1919
.flatMap(action => {
@@ -100,7 +100,7 @@ export const txExecEpic: Epic = (action$, store, { api }) => action$.ofAction(tx
100100
});
101101
});
102102

103-
return Observable.from(client.txSend(request)).flatMap(sendResponse => Observable.defer(() =>
103+
return Observable.from(client.txSend(request)).delay(TX_STATUS_INTERVAL).flatMap(sendResponse => Observable.defer(() =>
104104
client.txStatus(contracts.map(l => l.hash))
105105

106106
).map(status => {

0 commit comments

Comments
 (0)