• Conner Fromknecht's avatar
    feat: replace LastestDeposit with LastProcessedBlock · 89542545
    Conner Fromknecht authored
    Currently the teleportr database supports a LatestDeposit method,
    which returns the highest block number observed, if any. The intent was
    to use this as the starting point for syncing, however, this isn't super
    useful as there may be long periods of inactivity that we have already
    scanned.
    
    Instead, we now store the last processed block in a separate table, and
    pass the end of the ingestion block range as argument to UpsertDeposits.
    The list of deposits and last processed block are written atomically to
    avoid consistency issues. The value can be retrieved using the
    LastProcessedBlock getter.
    89542545
Name
Last commit
Last update
.changeset Loading commit data...
.circleci Loading commit data...
.github Loading commit data...
.husky Loading commit data...
.vscode Loading commit data...
audits Loading commit data...
go Loading commit data...
integration-tests Loading commit data...
l2geth Loading commit data...
ops Loading commit data...
packages Loading commit data...
patches Loading commit data...
.dockerignore Loading commit data...
.editorconfig Loading commit data...
.eslintrc.js Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.nvmrc Loading commit data...
.prettierrc.js Loading commit data...
.prettierrc.json Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
lerna.json Loading commit data...
package.json Loading commit data...
tsconfig.build.json Loading commit data...
tsconfig.json Loading commit data...
yarn.lock Loading commit data...