aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-11 06:47:30 +0800
committerFabio Berger <me@fabioberger.com>2017-11-11 06:47:30 +0800
commit697926641ff2996e561811f077f0f51afb543484 (patch)
tree4ad351e1d2ee74b63eca8236e7bcd108dbb03072
parent9b9ab983d618fd5857955a2d816e85060e80e82d (diff)
downloaddexon-sol-tools-697926641ff2996e561811f077f0f51afb543484.tar
dexon-sol-tools-697926641ff2996e561811f077f0f51afb543484.tar.gz
dexon-sol-tools-697926641ff2996e561811f077f0f51afb543484.tar.bz2
dexon-sol-tools-697926641ff2996e561811f077f0f51afb543484.tar.lz
dexon-sol-tools-697926641ff2996e561811f077f0f51afb543484.tar.xz
dexon-sol-tools-697926641ff2996e561811f077f0f51afb543484.tar.zst
dexon-sol-tools-697926641ff2996e561811f077f0f51afb543484.zip
Rename method since it's not more then just mempool
-rw-r--r--src/order_watcher/event_watcher.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_watcher/event_watcher.ts b/src/order_watcher/event_watcher.ts
index 2a1b6dacf..0174288cc 100644
--- a/src/order_watcher/event_watcher.ts
+++ b/src/order_watcher/event_watcher.ts
@@ -26,7 +26,7 @@ export class EventWatcher {
assert.isFunction('callback', callback);
this._callbackIfExistsAsync = callback;
this._intervalIdIfExists = intervalUtils.setAsyncExcludingInterval(
- this._pollForMempoolEventsAsync.bind(this), this._pollingIntervalMs,
+ this._pollForBlockchainEventsAsync.bind(this), this._pollingIntervalMs,
);
}
public unsubscribe(): void {
@@ -36,7 +36,7 @@ export class EventWatcher {
intervalUtils.clearAsyncExcludingInterval(this._intervalIdIfExists);
}
}
- private async _pollForMempoolEventsAsync(): Promise<void> {
+ private async _pollForBlockchainEventsAsync(): Promise<void> {
const pendingEvents = await this._getEventsAsync();
if (pendingEvents.length === 0) {
// HACK: Sometimes when node rebuilds the pending block we get back the empty result.