Etan Kissling
21b69d5901
avoid small gaps in optimistic block stream ( #3749 )
...
Ensures that all intermediate blocks are reported if a small gap is
encountered when downloading optimistic blocks. Gaps may occur when
a block is missed and still downloading, or when EL processing is slow.
If the gap exceeds 1 epoch, optimistic block stream jumps to latest.
2022-06-16 15:24:08 +00:00
zah
e8efc0f184
Add support for the Sepolia network ( #3762 )
2022-06-16 17:11:26 +03:00
Etan Kissling
ac7393b8ac
remove unused `withStateVars` template ( #3738 )
...
Removes the `withStateVars` template that was not used meaningfully.
2022-06-16 11:46:35 +02:00
Miran
13f52488de
don't convert URL to lower ascii, fixes #3756 ( #3757 )
2022-06-16 08:46:43 +03:00
tersec
9da9fc83ed
bump merge-testnets for final ropsten TTD ( #3754 )
2022-06-16 08:18:46 +03:00
Etan Kissling
6144ecd95c
format pragmas consistently in `conf.nim` ( #3750 )
...
Aligns code style in `conf.nim`. Some pragmas lacked trailing `.`
2022-06-15 18:04:07 +00:00
tersec
27e1625d34
check for and log gossip broadcast failure ( #3737 )
...
* check for and log gossip broadcast failure
* switch notices to warns; update LC variables regardless
* don't both return a Result and log sending error
* add metrics counter for failed-due-to-no-peers and removed unnecessary async
* don't report failure of sync committee messages
* remove redundant metric
* document metric being incremented
2022-06-15 08:14:47 +00:00
zah
694b653757
Bellatrix TTD detection ( #3745 )
...
* Bellatrix TTD detection
* Update beacon_chain/eth1/eth1_monitor.nim
Co-authored-by: Etan Kissling <etan@status.im>
* Update beacon_chain/nimbus_beacon_node.nim
Co-authored-by: tersec <tersec@users.noreply.github.com>
Co-authored-by: Etan Kissling <etan@status.im>
Co-authored-by: tersec <tersec@users.noreply.github.com>
2022-06-15 02:38:27 +00:00
Etan Kissling
20e646a47f
avoid casting types in LC data code ( #3743 )
...
Use `asSigned()` for type safety over `isomorphicCast` in LC data code.
2022-06-14 23:33:18 +02:00
Etan Kissling
6bf7d64680
update CI timeouts ( #3751 )
...
Assign a longer overall timeout that a CI job can spend in queue,
and define short timeouts for the individual stages to avoid stuck jobs.
2022-06-14 22:39:54 +02:00
Eugene Kabanov
1b6651dfc3
Fix /eth/v1/node/syncing ( #3720 )
...
* Fix REST `/eth/v1/node/syncing` call to return values even if SyncManager is not running.
* Use syncManager.inProgress as is_syncing indicator.
2022-06-14 22:26:23 +02:00
Etan Kissling
81ff20b3f0
use block ID vs full block in LC data caching ( #3741 )
...
`cacheLightClientData` does not need full block data, pass just ID.
2022-06-14 22:13:00 +02:00
Etan Kissling
0c00b85782
cleanup LC data helpers ( #3746 )
...
Use more general `lowSlot` in LC data helpers, and avoid using
`earliestSlot` variable name as that one has a different meaning.
2022-06-14 22:02:03 +02:00
Etan Kissling
cba041ddfa
fix LC data import for Altair fork period ( #3744 )
...
The initial sync committee period follows a different finality rule than
the other ones. Instead of next sync committee finalizing as soon as the
`finalizedHead.slot >= period.start_slot` have to use Altair start slot.
2022-06-14 17:31:10 +02:00
Etan Kissling
8b7bf017a6
fix CI archive step ( #3752 )
...
c20309ba39
accidentally deleted a `"`.
This is now re-added to avoid errors during artifact CI archiving step.
2022-06-14 16:41:20 +02:00
zah
0bfe7b10bb
Support displaying the version number in the status bar; Implements #2959 ( #3747 )
2022-06-14 14:53:58 +03:00
Jacek Sieka
099709872e
Merge branch 'stable' into unstable
2022-06-14 13:35:38 +02:00
Jacek Sieka
38b6f7263d
ci: install cmake on windows in daily job
...
it's been failing since forever
2022-06-14 13:35:17 +02:00
Dustin Brody
c20309ba39
don't use slow-to-compress bzip2 with larger Jenkins artifacts
2022-06-14 10:48:30 +00:00
Etan Kissling
52ba4f7999
rename light client config parameters ( #3740 )
...
For consistency with other options, use a common prefix for light client
data configuration options.
* `--serve-light-client-data` --> `--light-client-data-serve`
* `--import-light-client-data` --> `--light-client-data-import-mode`
No deprecation of the old identifiers as they were only sparingly used
and all usage can be easily updated without interferance.
2022-06-14 12:03:39 +03:00
Etan Kissling
21a1f7eeb7
error handling for local testnet REST query ( #3739 )
...
When querying `ALTAIR_FORK_EPOCH` fails, the `launch_local_testnet`
script got stuck because comparing `CURRENT_FORK_EPOCH` against it
would keep failing with `[: : integer expression expected`.
Querying `ALTAIR_FORK_EPOCH` is now retried until a number is returned.
2022-06-14 08:38:39 +00:00
tersec
8d421f3d91
keep fcU consistent with actual DAG ( #3748 )
2022-06-14 08:28:30 +00:00
Etan Kissling
e3f0d2ecbc
remove unused `getExistingForkedBlock` overload ( #3742 )
...
Removes an unused overload of a local LC data function.
2022-06-14 08:19:11 +00:00
tersec
0cedb1b6a7
seq(1) can count backwards on macOS; catch undefined variable use ( #3735 )
2022-06-13 20:01:39 +03:00
Etan Kissling
7b04a94d43
fix #3674 (Sync progress >100% on checkpoint sync) ( #3736 )
...
Corrects an off-by-1 in the reported sync percentage computation.
New logic is based on `SyncQueue.total` and `SyncQueue.progress`
with `pivot` instead of `sq.startSlot`.
2022-06-13 20:00:36 +03:00
tersec
51885519a2
lc in sepolia ( #3734 )
2022-06-11 01:36:45 +00:00
tersec
604b74abd2
move assert before compress ( #3733 )
2022-06-11 01:16:40 +00:00
tersec
aa4f105c0c
improve panda display ( #3732 )
2022-06-11 00:48:04 +00:00
tersec
6516ad43eb
remove obsolete beta altair github workflow ( #3731 )
2022-06-10 23:43:37 +00:00
Etan Kissling
15967c4076
keep track of latest blocks for optimistic sync ( #3715 )
...
When launched with `--light-client-enable` the latest blocks are fetched
and optimistic candidate blocks are passed to a callback (log for now).
This helps accelerate syncing in the future (optimistic sync).
2022-06-10 14:16:37 +00:00
tersec
cc5f95dbbb
separate non-zero exit code for doppelganger detection ( #3728 )
2022-06-10 14:53:19 +03:00
tersec
65cecc50ca
cleanups: unused and duplicate imports, inconsistent naming conventions, URL updates ( #3724 )
2022-06-09 14:30:13 +00:00
Zahary Karadjov
9750a2a760
Change the log level for unrecognized json fields from debug to trace
2022-06-09 16:08:50 +03:00
Jacek Sieka
2edf33de7d
ncli: altair+ slot and state transitions ( #3721 )
...
clearly this doesn't get used a lot :)
2022-06-09 12:57:33 +00:00
tersec
83793c3599
fix Nim 1.6 build deprecation warnings ( #3712 )
2022-06-09 12:09:38 +03:00
tersec
1dec3ff8b6
remove unused stdlib imports ( #3718 )
2022-06-09 08:50:36 +00:00
Jacek Sieka
7ec1521c52
use unsigned literals ( #3717 )
...
in the hopes of avoiding potential for conversion bugs on i386
2022-06-08 11:09:33 +00:00
Tanguy
29297e9ce4
Bump libp2p ( #3709 )
2022-06-08 07:53:50 +02:00
tersec
a07d14cd99
remove unused imports in tests/ ( #3713 )
2022-06-07 17:05:06 +00:00
Etan Kissling
72a46bd520
integrate light client into beacon node ( #3557 )
...
Adds a `LightClient` instance to the beacon node as preparation to
accelerate syncing in the future (optimistic sync).
- `--light-client-enable` turns on the feature
- `--light-client-trusted-block-root` configures block to start from
If no block root is configured, light client tracks DAG `finalizedHead`.
2022-06-07 19:01:11 +02:00
tersec
3bd9622572
bump nim-json-serialization to fix Nim 1.6 build warnings ( #3711 )
2022-06-07 16:26:40 +02:00
tersec
3e7d3bbc31
bump eth2-networks with mainnet/prater including capella ( #3707 )
2022-06-06 17:45:58 +03:00
tersec
7078833f56
per-validator suggested fee recipients ( #3652 )
2022-06-06 16:58:47 +03:00
Jacek Sieka
b35584632b
sync: remove `step` from sync client implementation ( #3678 )
...
* sync: remove `step` from sync client implementation
Deprecated in the spec:
https://github.com/ethereum/consensus-specs/pull/2856 - future PR:s will
deprecate server support as well.
2022-06-06 16:56:59 +03:00
tersec
1262e50fa5
document MEV/mergemock test script ( #3694 )
2022-06-06 16:55:02 +03:00
tersec
399afd89e9
bump nim-json-serialization to reduce TaintedString deprecation warnings ( #3703 )
2022-06-05 08:55:59 +02:00
tersec
38737549ac
refactor fork consistency checking and gate compilation on it ( #3704 )
2022-06-04 19:15:15 +00:00
Dustin Brody
21200f4a64
fix false-positive in overlap between default {CAPELLA,SHARDING}_FORK_VERIONs
2022-06-04 14:52:03 +00:00
tersec
a3f8b4e9eb
bump nim-confutils to reduce TaintedString deprecation warnings ( #3702 )
2022-06-04 08:58:41 +02:00
tersec
faf4d4a001
initial Capella support in RuntimeConfig ( #3698 )
2022-06-03 14:42:40 +00:00