• Mark Tyneway's avatar
    dtl: smaller range for filter query · ffadcb45
    Mark Tyneway authored
    On fresh startup, the DTL attempts to make a range
    query that is very large when the starting L1 block
    height is not configured. It looks for ownership
    transferred events on the address manager, the first
    one to happen indicates that the address manager was
    deployed at that height.
    
    Now that we use the same address manager over time instead
    of the old way of upgrading the system where we would
    redeploy the address manager each time, we must pass
    the L1 start height as a config option to the DTL,
    otherwise it will attempt to sync old transactions
    (from a previous regenesis).
    
    This commit will reduce the range at which the DTL
    will query for the events, as alchemy only supports
    a range of 2000. This will make the search prohibitively
    slow, but that is ok as the value ought to be configured
    anyways.
    
    This functionality is really only useful for ephemeral networks.
    
    A new logline is added for convenience.
    ffadcb45
Name
Last commit
Last update
..
client Loading commit data...
db Loading commit data...
services Loading commit data...
types Loading commit data...
utils Loading commit data...
index.ts Loading commit data...