Fantom-foundation / go-lachesis

aBFT consensus for permission-less networks
https://fantom.foundation
MIT License
224 stars 78 forks source link

fix of import/export commands #494

Closed devintegral closed 4 years ago

devintegral commented 4 years ago
  1. Commands lachesis export and lachesis import store and check genesis hash in export file. It prevents event importing into incompatible DAG.
  2. Command lachesis import ignores already existing event.
codecov-commenter commented 4 years ago

Codecov Report

Merging #494 into develop will decrease coverage by 0.18%. The diff coverage is 9.09%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #494      +/-   ##
===========================================
- Coverage    47.16%   46.98%   -0.19%     
===========================================
  Files          193      193              
  Lines        14010    14035      +25     
===========================================
- Hits          6608     6594      -14     
- Misses        6824     6864      +40     
+ Partials       578      577       -1     
Impacted Files Coverage Δ
cmd/lachesis/export.go 0.00% <0.00%> (ø)
cmd/lachesis/import.go 0.00% <0.00%> (ø)
gossip/consensus_callbacks.go 11.29% <50.00%> (+1.47%) :arrow_up:
inter/ascii_scheme.go 80.50% <0.00%> (-3.39%) :arrow_down:
gossip/execqueue.go 89.13% <0.00%> (-2.18%) :arrow_down:
evmcore/tx_pool.go 74.70% <0.00%> (-0.53%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6aaf30e...9a1047e. Read the comment docs.