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
tersec
ea113fc420
disallow non-(genesis, far-future) equal transition epochs ( #3691 )
2022-06-03 09:37:03 +00:00
tersec
7492f99f35
update CL spec URLs ( #3696 )
2022-06-03 09:01:58 +00:00
Eugene Kabanov
50f9596108
Eliminate rpc_types.nim usage. ( #3692 )
2022-06-02 09:39:08 +00:00
tersec
ce143a1078
update CL spec URLs ( #3690 )
2022-06-01 15:52:45 +00:00
tersec
62bfe97bbe
fix ExecutionPayload(Header) JSON serialization ( #3679 )
2022-06-01 14:57:28 +02:00
Jacek Sieka
6a0433cb08
REST parameter defaults ( #3689 )
...
* add default BN for VC
* unify "default" beacon node across commands
* clean up validator exit docs
2022-06-01 10:47:52 +00:00
tersec
09663e00d8
don't hide Nim 1.6 build failures ( #3685 )
2022-06-01 00:57:42 +00:00
tersec
f929980bf3
update 20 CL spec ref URLs ( #3677 )
2022-05-31 11:15:31 +00:00
tersec
48f9631ed1
remove JSON-RPC consensus layer API client ( #3676 )
...
* remove JSON-RPC consensus layer API client
* rm eth2_json_rpc_serialization
2022-05-31 11:05:15 +00:00
Etan Kissling
01efa93cf6
add light client (standalone) ( #3653 )
...
Introduces a new library for syncing using libp2p based light client
sync protocol, and adds a new `nimbus_light_client` executable that uses
this library for syncing. The new executable emits log messages when
new beacon block headers are received, and is integrated into testing.
2022-05-31 12:45:37 +02:00