Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dot/digest): BABE NextEpochData and NextConfigData should be set …
…on finalization (#2339) * feat: include substrate docker image * chore: add substrate docker images * chore: formatting and add depends on yaml key * chore: add datadog stuff again * chore: use alice peer id * chore: split substrate docker compose services into another file * chore: enable prometheus external and add datadog * chore: keep substrate ports same as gossamer node ports * chore: expose rpc and ws calls in substrate docker file * chore: use same dns name and p2p id * chore: use same key for both alice gossamer and substrate nodes * chore: fix dd golang cmd chore: keep both cross-client and gssmr chain genesis raw chore: mistakes * Update devnet/README.md Co-authored-by: Quentin McGaw <[email protected]> * Update devnet/README.md Co-authored-by: Quentin McGaw <[email protected]> * chore: update `substrate_alice` readme info * Update devnet/README.md Co-authored-by: Quentin McGaw <[email protected]> * chore: add `/tcp` to expose ports * chore: adjust args and envs * chore: pin prometheus version, add read only volume and add trailing new line * chore: improve README.md * chore: add port 7001 explicitly * chore: remove prometheus `--config.file` flag Co-authored-by: Quentin McGaw <[email protected]> * chore: use env to chain This is needed since ARG cannot be used inside ENTRYPOINT * update substrate_bob.Dockerfile * chore: add datadog-agent start to gssmr alice node * chore: add comment about different but same node keys * chore: IncrementSetID to return the nextSetID * chore: digest HandleDigests check !ok first * feat: store babe next epoch data only at finalised blocks * feat: include substrate docker image * chore: add substrate docker images * chore: formatting and add depends on yaml key * chore: add datadog stuff again * chore: use alice peer id * chore: split substrate docker compose services into another file * chore: enable prometheus external and add datadog * chore: keep substrate ports same as gossamer node ports * chore: expose rpc and ws calls in substrate docker file * chore: use same dns name and p2p id * chore: use same key for both alice gossamer and substrate nodes * chore: fix dd golang cmd chore: keep both cross-client and gssmr chain genesis raw chore: mistakes * Update devnet/README.md Co-authored-by: Quentin McGaw <[email protected]> * Update devnet/README.md Co-authored-by: Quentin McGaw <[email protected]> * chore: update `substrate_alice` readme info * chore: add `/tcp` to expose ports * Update devnet/README.md Co-authored-by: Quentin McGaw <[email protected]> * chore: adjust args and envs * chore: pin prometheus version, add read only volume and add trailing new line * chore: improve README.md * chore: add port 7001 explicitly * chore: add datadog-agent start to gssmr alice node * chore: remove prometheus `--config.file` flag Co-authored-by: Quentin McGaw <[email protected]> * chore: use env to chain This is needed since ARG cannot be used inside ENTRYPOINT * update substrate_bob.Dockerfile * chore: add comment about different but same node keys * chore: IncrementSetID to return the nextSetID * chore: digest HandleDigests check !ok first * feat: store babe next epoch data only at finalised blocks * chore: resolve conflicts * chore: remove unused * chore: rename function and change log message * chore: fix babe next epoch data/config while not finalized chain * chore: allow forks validate blocks using the right epoch data * chore: add exported comments and improve VerifyBlock comment * chore: fix lint, removing shadowing * chore: promising integration test to cover babe digest handler * chore: integration test added to babe verify block * chore: needs improvent at chain finalization * chore: integration test done! * chore: fix lint * chore: addressing comments at digest pkg * chore: wrap errors at granpda pkg and fix lll at verify_integration_test * chore: improve comments * chore: improving state/epoch tests * chore: return wrapped error at `babe digest finalization` * chore: improve testing * chore: improve exported comment Co-authored-by: Quentin McGaw <[email protected]> * chore: improve exported comment Co-authored-by: Quentin McGaw <[email protected]> * chore: improve error decription Co-authored-by: Quentin McGaw <[email protected]> * chore: improve error description * chore: reorg `HasConfigData` and `HasEpochData` * chore: add two mutexes for protect `nextEpoch` and `nextConfig` * chore: improve exported comment * chore: change `GetEpochData` to check in the memory if database doesnt return * chore: scope specific variables * unneeded `\n` * chore: fix unit tests * chore: git add fix exported func name * chore: fix tests * chore: remove DigestHandler from core pkg * chore: get current epoch at next epoch data and next config data * chore: check `err != nil` before check `err is not ErrKeyNotFound` * chore: rename error var name * chore: flip babe digest finalization * chore: improve exported comment * chore: separate not related conditions * chore: remove DigestHandler from `dot/core` pkg * chore: changing `String()` method owner * chore: change function name to `persistBABEDigestsForNextEpoch` * chore: fix typo * chore: remove `nilnil` lint warn * chore: remove unused core.DigestHandler mocks * chore: fix * chore: unexport functions * chore: fix integration tests Co-authored-by: Quentin McGaw <[email protected]>
- Loading branch information