Eugene Kabanov
8778e1cf8d
Fix REST generic error parsing. ( #4189 )
...
* Fix REST generic error parser.
* Unescape test vectors.
* Fix RestGenericError writer and tests, to encode `code` as `Number`.
2022-09-28 18:47:15 +00:00
Jacek Sieka
c11b30f8e1
Remove deprecated REST API calls from client ( #4190 )
...
* https://github.com/ethereum/beacon-APIs/pull/220
* https://github.com/ethereum/beacon-APIs/pull/218
2022-09-28 10:37:54 +00:00
tersec
57d68d0f72
re-enable randao checks ( #4187 )
...
* re-enable randao checks
* use `asSigVerified` consistently
* fix spelling
* document why state_transition.makeBeaconBlock trusting signatures is safe
2022-09-28 01:15:10 +00:00
Jacek Sieka
b1bc830a92
Harden EpochRef loading against bogus block root at tail ( #4178 )
...
* add more error information when things go wrong with database
* lower log level when reloading attestations from no-block epoch start
slot
2022-09-27 18:56:08 +02:00
tersec
df03d81e3d
don't verify BLS signatures in produced blocks ( #4184 )
2022-09-27 14:19:53 +00:00
Jacek Sieka
3c1caab107
web3: bump ( #4183 )
...
* point to master branch again
2022-09-27 14:25:26 +02:00
tersec
0f6d19b4b3
implement v1.2.0 optimistic sync tests ( #4174 )
...
* implement v1.2.0 optimistic sync tests
* Update beacon_chain/consensus_object_pools/blockchain_dag.nim
Co-authored-by: Etan Kissling <etan@status.im>
* `lvh` -> `latestValidHash` and only invalidate one specific block"
* `getEarliestInvalidRoot` -> `getEarliestInvalidBlockRoot`; `defaultEarliestInvalidRoot` -> `defaultEarliestInvalidBlockRoot`
Co-authored-by: Etan Kissling <etan@status.im>
2022-09-27 15:11:47 +03:00
Jacek Sieka
7f9af78ddb
test randao skippping (complements #3837 ) ( #4179 )
2022-09-27 09:22:24 +02:00
tersec
a0ead042ad
newPayload `INVALIDATED` should be `unviableFork` ( #4180 )
2022-09-26 21:24:32 +00:00
tersec
9750cd3a38
update state diffs to Bellatrix ( #4177 )
2022-09-26 19:13:50 +00:00
tersec
6c18e82506
link to document of available external builder relays ( #4157 )
2022-09-26 19:11:34 +00:00
Etan Kissling
d76df065a1
rm unused `dump` function for `KeystoresAndSlashingProtection` ( #4170 )
...
In `eth2_rest_serialization` there was a `dump` function for
`KeystoresAndSlashingProtection` that does not seem to be used.
Removes that unused function.
2022-09-26 21:09:51 +02:00
tersec
321c872790
Remove warning on unused import of `filepath` ( #4176 )
2022-09-26 17:14:24 +00:00
Etan Kissling
7ac95c6ee7
move `EpochParticipationFlags` serialization to others ( #4167 )
...
The REST `writeValue/readValue` serialization functions are grouped up
with the exception of `EpochParticipationFlags`. Moving that to others.
2022-09-23 18:29:31 +00:00
Etan Kissling
77ea188c92
add `sszResponsePlain` for pre-encoded SSZ data ( #4171 )
...
For pre-encoded JSON REST responses we have `jsonResponsePlain`.
Adds a `sszResponsePlain` function to serve similar purpose for SSZ.
This avoids caller having to explicitly specify Http200 and media type.
2022-09-23 15:51:04 +00:00
Etan Kissling
6425f3f856
extend REST test with checks for `Eth-Consensus-Version` ( #4168 )
...
Adds checks to REST test suite to verify that `Eth-Consensus-Version`
HTTP header is properly included where expected.
2022-09-23 14:16:44 +00:00
Etan Kissling
8b11778e14
use `withState` in `jsonResponseState` ( #4169 )
...
The generic sandwich preventing `forks.withState` from working in REST
serialization is no longer applicable. Update to use `withState`.
2022-09-23 13:49:22 +00:00
Etan Kissling
cd626cf645
delete unused REST version constants ( #4166 )
...
Removes unused `Phase0Version` and `AltairVersion` constants.
2022-09-23 12:48:53 +00:00
tersec
deb043796b
a few more manual v1.2.0 consensus spec ref URL updates ( #4165 )
2022-09-23 12:00:17 +00:00
tersec
3c03ba86c1
update consensus spec ref URLs to v1.2.0 ( #4164 )
2022-09-23 07:56:06 +00:00
tersec
350223c8aa
external block builder metrics ( #4158 )
2022-09-23 09:20:32 +03:00
tersec
72e6b2021a
use v1.2.0 consensus spec test vectors ( #4163 )
2022-09-22 22:24:13 +00:00
Etan Kissling
6069003a1f
fix check for attaching to pre-finalized parent ( #4161 )
...
When the BN's head is reorged while shut down, reloading the BN will not
assign `BlockRef` to alternate branches. However, blocks from other
branches are still present in the database, leading to their descendants
incorrectly marked as `UnviableFork`. By restricting the check to blocks
that have been finalized, they should be reported as `MissingParent`
instead, eventually re-assigning a `BlockRef` to them.
2022-09-22 18:33:26 +00:00
Jakub Sokołowski
d697a54846
local_launch_testnet: use -SIGKILL instead of -9 ( #4159 )
...
Might help with this error:
```
pkill: illegal option -- 9
usage: pkill [-signal] [-ILfilnovx] [-F pidfile] [-G gid]
[-P ppid] [-U uid] [-g pgrp] [-t tty] [-u euid]
pattern ...
```
Signed-off-by: Jakub Sokołowski <jakub@status.im>
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-22 11:55:50 +00:00
Jacek Sieka
c146ea823c
bump web3 ( #4156 )
...
* fixes `BlockObject` definition
* fixes JSON-RPC Option support
2022-09-22 11:15:57 +00:00
Zahary Karadjov
9e5eb4c5a9
Final release notes for v22.9.1
2022-09-21 15:35:58 +03:00
Michael Sproul
d6325b1ab5
api: add skip_randao_verification for produceBlockV2 ( #3837 )
2022-09-21 09:38:08 +02:00
Zahary Karadjov
f7db50522b
Version 22.9.1
2022-09-20 23:50:31 +03:00
Miran
fcc46d3e3d
add nim commit to the gauge ( #4155 )
2022-09-20 18:52:24 +03:00
zah
154723947b
Don't search for the TTD block after the merge ( #4152 )
2022-09-20 09:17:25 +03:00
tersec
bed8318b7f
fix typos: attestion -> attestation ( #4153 )
2022-09-20 03:03:58 +00:00
tersec
56720dd808
update consensus layer spec ref URLs to v1.2.0-rc.3 ( #4143 )
2022-09-20 02:08:09 +02:00
zah
ad63bba446
Support Prysm and Ethdo Keystores ( Fixes #4107 ) ( #4149 )
2022-09-20 01:09:56 +03:00
Etan Kissling
0708fcd7cf
rm require engine API check ( #4144 )
...
The `eth1_monitor` check to require engine API from bellatrix onward
has issues in setups where the EL and CL are started simultaneously
because the EL may not be ready to answer requests by the time that the
check is performed. This can be observed, e.g., on Raspberry Pi 4 when
using Besu as the EL client. Now that the merge transition happened, the
check is also not that useful anymore, as users have other ways to know
that their setup is not working correctly (e.g., repeated exchange logs)
2022-09-19 23:47:46 +02:00
Miran
77d28f43f6
remove i386 windows from daily CI ( #4150 )
...
This was failing *forever* (yes, literally).
As discussed on Discord, i386 Windows is EOL,
there's no reason to run it.
2022-09-19 21:33:19 +00:00
Jacek Sieka
f9a2860a61
log attestation/block when slashing protection is activated ( #4148 )
2022-09-19 19:50:19 +00:00
Etan Kissling
5a32dacfc5
correct `nim-presto` bump ( #4145 )
...
#4139 linked to the commit on the feature branch itself instead of the
commit merged to `master`. Fix dependency reference.
2022-09-19 16:27:58 +00:00
Etan Kissling
23007eac3b
finalize 🐼 transition in local testnet CI ( #4142 )
...
When running local testnets as part of Jenkins CI, add one more epoch
to finalize the merge transition block.
2022-09-19 11:10:47 +00:00
Kim De Mey
c607d7da0b
Trusted node sync clarifications in nimbus book ( #4146 )
...
- Make it clear that it is a separate command from actually
running the beacon node
- Fix and extend the note on starting from a clean folder
2022-09-19 13:32:28 +03:00
tersec
e3750e96e8
fix order of current/previous dependent root in REST SSE ( #4141 )
2022-09-19 13:28:52 +03:00
Eugene Kabanov
174292b7e4
Sync gaps fix ( #4090 )
2022-09-19 12:37:42 +03:00
Etan Kissling
abd6581b22
allow custom configs in Gnosis binary ( #4134 )
...
When running as Gnosis-chain binary the config was no longer adjustable.
Restores loading custom configs when running as Gnosis-chain binary,
as long as the following keys remain same:
- SLOTS_PER_EPOCH=16
- SECONDS_PER_SLOT=5
- BASE_REWARD_FACTOR=25
- EPOCHS_PER_SYNC_COMMITTEE_PERIOD=512
This allows running the Gnosis-chain binary on custom test networks.
2022-09-19 12:25:41 +03:00
Eugene Kabanov
ca871a5435
Fix HTTP/REST clients HTTP Content-Type header parsers. ( #4139 )
...
* Fix client HTTP content-type parsers.
* Fix tests.
* Address review comment and apply wildcard checks for generic decodeBytes.
2022-09-19 12:17:29 +03:00
Etan Kissling
9999362b11
detect mismatch of config and binary ( #4132 )
...
* detect mismatch of config and binary
When loading configuration that sets keys that Nimbus bakes into the
binary at compile-time, raise an error if the config is incompatible
instead of ignoring the conflicting value.
2022-09-19 12:07:46 +03:00
Etan Kissling
4b3768c3a1
fix TTD before bellatrix ( #4137 )
...
When TTD hits before Bellatrix, avoid waiting for new blocks and detect
the TTD block as the terminal block hash even before Bellatrix hits.
Also allow detecting EL genesis block as merge transition block.
This fixes the local testnet simulation with Geth to actually merge.
2022-09-18 08:45:51 +03:00
Etan Kissling
3f17ceb0e2
run local finalization testnets with Geth ( #4138 )
2022-09-18 08:44:20 +03:00
tersec
ab3ac64b19
Remove optimistic sync candidate check ( #4129 )
2022-09-17 20:45:35 +00:00
Etan Kissling
6ad9b3214d
fix random `IndexError` in CI ( #4136 )
...
Bump `nim-chronos` to improve reliability of tests with `waitFor` logic.
The bump also adds more `FutureBase` helpers.
2022-09-17 19:45:09 +00:00
Miran
5a4c2d0a2b
move i386 testing to nightlies + remove testing of Nim 1.4 ( #4103 )
...
* remove i386 target from ci.yml
* add i386 build to nightlies.yml
* don't continue on error for Nim 1.6
* do not test Nim 1.4
2022-09-17 08:38:18 +03:00
Jacek Sieka
ef8bab58eb
load suggested fee recipient file also when keymanager is disabled ( #4078 )
...
Since these files may have been created in a previous run or manually,
we want to keep loading them even on nodes that don't enable the
keystore API (for example static setups)
Other changes:
* log keystore loading progressively (#3699 )
* print initial fee recipient when loading validators
* log dynamic fee recipient updates
2022-09-17 08:30:07 +03:00