mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 05:52:45 +00:00
805e85e1ff
Time in the beacon chain is expressed relative to the genesis time - this PR creates a `beacon_time` module that collects helpers and utilities for dealing the time units - the new module does not deal with actual wall time (that's remains in `beacon_clock`). Collecting the time related stuff in one place makes it easier to find, avoids some circular imports and allows more easily identifying the code actually needs wall time to operate. * move genesis-time-related functionality into `spec/beacon_time` * avoid using `chronos.Duration` for time differences - it does not support negative values (such as when something happens earlier than it should) * saturate conversions between `FAR_FUTURE_XXX`, so as to avoid overflows * fix delay reporting in validator client so it uses the expected deadline of the slot, not "closest wall slot" * simplify looping over the slots of an epoch * `compute_start_slot_at_epoch` -> `start_slot` * `compute_epoch_at_slot` -> `epoch` A follow-up PR will (likely) introduce saturating arithmetic for the time units - this is merely code moves, renames and fixing of small bugs.
54 lines
737 B
Plaintext
54 lines
737 B
Plaintext
nimcache/
|
|
|
|
# Executables shall be put in an ignored build/ directory
|
|
build/
|
|
|
|
# Nimble packages
|
|
/vendor/.nimble
|
|
|
|
# ntags/ctags output
|
|
/tags
|
|
|
|
# vscode
|
|
.vscode
|
|
|
|
# Each developer can create a personal .env file with
|
|
# local settings overrides (e.g. WEB3_URL)
|
|
.env
|
|
|
|
# Ignore dynamic, static libs and libtool archive files
|
|
*.so
|
|
*.dylib
|
|
*.a
|
|
*.la
|
|
*.exe
|
|
*.dll
|
|
*.su
|
|
|
|
/scripts/testnet*.sh
|
|
/scripts/package_image/usr/bin
|
|
|
|
# State sim # TODO - move in another folder
|
|
0000-*.json
|
|
*.ssz
|
|
*.log
|
|
*.sqlite3
|
|
*.sqlite3-shm
|
|
*.sqlite3-wal
|
|
|
|
/local_testnet_data*/
|
|
/local_testnet*_data*/
|
|
|
|
# Prometheus db
|
|
/data
|
|
# Grafana dashboards
|
|
/docker/*.json
|
|
|
|
# generated during Nim compilation
|
|
*.nim.generated.nim
|
|
|
|
/dist
|
|
/benchmark_results
|
|
/.update.timestamp
|
|
resttest0_data
|