aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/data_sources/contract-wrappers/exchange_events.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-28 04:38:44 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:48 +0800
commit96fdb9b76603ac5e4be654e52c52128f0490b3d8 (patch)
treebecff030b7b4f5413608f767090a16297726895d /packages/pipeline/src/data_sources/contract-wrappers/exchange_events.ts
parent1aa3f9d69f7a6570c6fa62c542063fa92fc0bf5a (diff)
downloaddexon-sol-tools-96fdb9b76603ac5e4be654e52c52128f0490b3d8.tar.gz
dexon-sol-tools-96fdb9b76603ac5e4be654e52c52128f0490b3d8.tar.zst
dexon-sol-tools-96fdb9b76603ac5e4be654e52c52128f0490b3d8.zip
Reduce number of blocks per query in pull_missing_events
Diffstat (limited to 'packages/pipeline/src/data_sources/contract-wrappers/exchange_events.ts')
-rw-r--r--packages/pipeline/src/data_sources/contract-wrappers/exchange_events.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/pipeline/src/data_sources/contract-wrappers/exchange_events.ts b/packages/pipeline/src/data_sources/contract-wrappers/exchange_events.ts
index d09f59535..5721c0ea3 100644
--- a/packages/pipeline/src/data_sources/contract-wrappers/exchange_events.ts
+++ b/packages/pipeline/src/data_sources/contract-wrappers/exchange_events.ts
@@ -12,7 +12,7 @@ import { Web3Wrapper } from '@0x/web3-wrapper';
import { LogWithDecodedArgs } from 'ethereum-types';
const BLOCK_FINALITY_THRESHOLD = 10; // When to consider blocks as final. Used to compute default toBlock.
-const NUM_BLOCKS_PER_QUERY = 100000; // Number of blocks to query for events at a time.
+const NUM_BLOCKS_PER_QUERY = 20000; // Number of blocks to query for events at a time.
const EXCHANGE_START_BLOCK = 6271590; // Block number when the Exchange contract was deployed to mainnet.
export class ExchangeEventsSource {