This repository was archived by the owner on Oct 16, 2025. It is now read-only.
4.0.0
Significant rewrite of eth-block-tracker
. Primary reason was optimizing network IO.
BlockTrackers no longer have manual stop/start methods, they now automatically start and stop based on listener count for the latest
and sync
events. You can force a stop by calling the EventEmitter
method removeAllListeners
.
Events now only return the block number. Internal polling is done via eth_blockNumber
.
The block
event has been removed, please use latest
or sync
.
Changed
- Added isRunning method
- Added
error
event - Renamed awaitCurrentBlock -> getLatestBlock
- Removed tx body from block
- Removed getTrackingBlock
- Removed start/stop
- Removed
block
event - Removed test/util/testBlockMiddleware