Closed JoeCap08055 closed 1 month ago
Makes changing the current block number while the scan is paused work correctly.
resetScan
rewindOffset
immediate
Refactors the scan loop a bit to make more compact & readable, as well as to be able to honor scan reset requests even if a scan is in-progress.
Description
Makes changing the current block number while the scan is paused work correctly.
resetScan
endpoint:rewindOffset
: number; indicates number of blocks to rewind from either end of chain or block number in requestimmediate
: boolean; indicates whether to start the scan immediately from the new position, or allow it to take effect at the next scheduled intervalRefactors the scan loop a bit to make more compact & readable, as well as to be able to honor scan reset requests even if a scan is in-progress.