Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

SMASH starts syncing from Byron genesis #172

Open
erikd opened this issue Jul 2, 2021 · 3 comments
Open

SMASH starts syncing from Byron genesis #172

erikd opened this issue Jul 2, 2021 · 3 comments

Comments

@erikd
Copy link
Member

erikd commented Jul 2, 2021

I left it (commit 4b71cf9) running over night and woke up to find that it was syncing Byron era blocks but already was fetching offline pool metadata.

I then found this:

[2021-07-02 01:27:53.86 UTC] runDBThread: AsyncCancelled
[2021-07-02 01:27:53.86 UTC] ChainSyncWithBlocksPtcl: AsyncCancelled
[2021-07-02 01:27:53.86 UTC] Identity Application Exception: LocalAddress "../cardano-node/state-node-mainnet/node.socket" MuxError MuxSDUWriteTimeout "Mux SDU Time
out"

after which it started a block 0 of the Byron era again.

Therefore it seems that network errors can cause SMASH to resync from genesis (without rolling back the database).

@erikd
Copy link
Member Author

erikd commented Jul 2, 2021

Have tried @kderme 's kderme/alonzo branch and it suffers the same problem.

@erikd
Copy link
Member Author

erikd commented Jul 2, 2021

This is such a pain in the neck. Network error messages keep causing my SMASH instance to re-start syncing from block 0.

This makes it incredibly difficult to compare the SMASH that is integrated into db-sync with the standalone version.

@erikd
Copy link
Member Author

erikd commented Jul 2, 2021

The module Cardano.SMASH.DBSyncRun has a bunch of code to set up a SyncDataLayer but none ot that code seems to be ever run.

Building the 1.4.0 release tag using cabal also runs into a bunch of problems with dependencies. Spent a bunch of time trying to find a solution but there does not seem to be any suitable solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant