diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-28 04:38:44 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:25 +0800 |
commit | 6d2f4b91a99b2ae022564ceb2163ca80b7af2d90 (patch) | |
tree | efdd6bc1ee1d641fc8754e7ee34a7de5d08ea08f /packages | |
parent | 6739261a7e46a5832bbcde89b76ee564fd798b1b (diff) | |
download | dexon-sol-tools-6d2f4b91a99b2ae022564ceb2163ca80b7af2d90.tar dexon-sol-tools-6d2f4b91a99b2ae022564ceb2163ca80b7af2d90.tar.gz dexon-sol-tools-6d2f4b91a99b2ae022564ceb2163ca80b7af2d90.tar.bz2 dexon-sol-tools-6d2f4b91a99b2ae022564ceb2163ca80b7af2d90.tar.lz dexon-sol-tools-6d2f4b91a99b2ae022564ceb2163ca80b7af2d90.tar.xz dexon-sol-tools-6d2f4b91a99b2ae022564ceb2163ca80b7af2d90.tar.zst dexon-sol-tools-6d2f4b91a99b2ae022564ceb2163ca80b7af2d90.zip |
Reduce number of blocks per query in pull_missing_events
Diffstat (limited to 'packages')
-rw-r--r-- | packages/pipeline/src/data_sources/contract-wrappers/exchange_events.ts | 2 |
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 { |