Closed fvictorio closed 6 years ago
I think HOME_START_BLOCK
and FOREIGN_START_BLOCK
should points to the blocks we need to start looking for events from. So, they need to be included in the very first eth_getLogs
call.
Done. To simplify things, I made sure that lastProcessedBlock
is always a BN. Otherwise we are always guessing if it is a string, a number or a bignumber.
You need to merge to develop
(please create it) not to master
.
You need to merge to
develop
(please create it) not tomaster
.
Oh, sorry. I just opened #103.
Closes #87.
Note that the names
HOME_START_BLOCK
andFOREIGN_START_BLOCK
may be misleading: they are being interpreted as "last processed", so it will actually start fromHOME_START_BLOCK + 1
.@akolotov do you think we should fix this? We can change the variable names to better reflect what they do, or we can fix it by subtracting 1 to them when they are used as last processed block numbers.