tersec
34eade3a99
sign blinded blob sidecars during builder API proposals ( #5537 )
2023-10-28 05:10:23 +00:00
tersec
922283e2e3
clean up ncli_testnet and reduce `ValidIpAddress` usage ( #5529 )
...
* ValidIpAddress -> IpAddress
* clean up ncli_testnet and reduce ValidIpAddress usage
2023-10-26 23:16:15 +00:00
tersec
09df3f32b5
add non-SZ getBlobSidecar and BlobSidecar database tests ( #5528 )
2023-10-26 03:40:04 +00:00
tersec
41dfc9ed91
add `KZGProof` and `Blob` REST JSON serializations ( #5526 )
...
* add KZGProof and Blob REST JSON serializations
* error summary updates
* copyright notice
* consistent integer types for Nim 2.0
2023-10-25 23:50:59 +02:00
Etan Kissling
d32fafa2ec
`investigated` -> `inspected` in `libnimbus_lc` docs ( #5523 )
...
Consistently use `inspected` instead of `investigted` terminology in
documentation of `libnimbus_lc` functions.
2023-10-24 16:09:44 +00:00
tersec
5aa5095e17
Fix REST JSON KzgCommitment encoding/decoding to use hex strings per spec ( #5522 )
2023-10-24 15:22:59 +00:00
Etan Kissling
468ee6a7ed
simplify `getBlockSSZ` and `getBlockSZ` implementation ( #5521 )
...
Use `forks` sugar to reduce code duplication in `beacon_chain_db.nim`.
2023-10-24 09:15:34 +00:00
tersec
513c9d9637
fix Deneb RestPublishedSignedBlockContents REST JSON decoding ( #5520 )
2023-10-24 05:50:32 +00:00
tersec
026ad21906
send DenebBlockContents in produceBlockV2 ( #5519 )
2023-10-24 02:50:26 +00:00
tersec
fd21882e24
improve test coverage of post-Bellatrix initialize_beacon_state_from_eth1 ( #5517 )
2023-10-24 01:58:52 +00:00
tersec
b2e81de6db
remove unnecessary Builder API status endpoint usage ( #5518 )
2023-10-23 23:01:29 +00:00
tersec
a986a1bcd8
using deneb_mev for Deneb is less incorrect than using capella_mev ( #5516 )
2023-10-20 01:39:47 +00:00
tersec
769316d909
construct Deneb blinded blobs from builder API getHeader ( #5513 )
2023-10-19 17:34:32 +00:00
tersec
4ddd771127
automated consensus spec URL updating to v1.4.0-beta.3 ( #5514 )
2023-10-19 10:26:38 +00:00
tersec
9fd52ebe9f
use consensus spec v1.4.0-beta.3 test vectors ( #5512 )
2023-10-19 05:14:02 +00:00
Zahary Karadjov
d52e8165d5
Merge branch 'stable' into unstable
2023-10-18 20:10:00 +03:00
tersec
6eb7d481fa
fix Deneb builder API block body type; introduce and use ExecutionPayloadHeaderAndBlindedBlobsBundle ( #5509 )
2023-10-18 02:54:02 +00:00
andri lim
0f9b52933e
Bump nim-eth: Change block timestamp from std.Time to distinct uint64 ( #5510 )
...
* Bump nim-eth: Change block timestamp from std.Time to distinct uint64
Also change tx.maxFeePerBlobGas from GasInt to UInt256
following Cancun latest spec
* Fix EthTime.now from func to proc due to sideeffects
2023-10-18 07:37:57 +07:00
Zahary Karadjov
8b07f4fd4c
Version 23.10.0
2023-10-17 02:35:27 +03:00
zah
35bf03a3fb
Add the --verifying-web3-signer-url configuration option ( #5504 )
2023-10-13 15:42:00 +03:00
tersec
c5028b56bf
change blinded block proposal failures to REST internal errors ( #5501 )
2023-10-12 23:54:24 +02:00
tersec
eeac00d08e
add RPC signature; add type constraints on proposeBlockMEV ( #5498 )
2023-10-12 11:49:48 +00:00
tersec
40616b6243
update some consensus spec URLs to v1.4.0-beta.2 ( #5497 )
2023-10-12 05:07:41 +00:00
tersec
ec1d98cc3a
implement deneb block and blob unblinding ( #5496 )
2023-10-12 03:40:15 +00:00
tersec
edc5c03230
consistently use SignedBlindedBeaconBlockContents; remove more Bellatrix Builder API remnants ( #5493 )
2023-10-11 11:48:35 +00:00
tersec
48197e4d55
add/update Deneb Builder API types and RPC signatures ( #5492 )
2023-10-11 04:25:59 +00:00
tersec
447786518f
ShufflingRef approach to next-epoch validator duty calculation/prediction ( #5414 )
...
* ShufflingRef approach to next-epoch validator duty calculation/prediction
* refactor action_tracker.updateActions to take ShufflingRef + beacon_proposers; refactor maybeUpdateActionTrackerNextEpoch to be separate and reused function; add actual fallback logic
* document one possible set of conditions
* check epoch participation flags and inactivity scores to ensure no penalties and MAX_EFFECTIVE_BALANCE to ensure rewards don't matter
* correctly (un)shuffle each proposer index
* remove debugging assertion
2023-10-10 00:02:07 +00:00
tersec
a4cf203849
fix mainnet bootstrap node comment parsing; fix nimbus guide grammar ( #5486 )
2023-10-06 19:26:30 +00:00
Eugene Kabanov
1da202156f
Improve keystore loading log statements to show information about why keystore was not loaded. ( #5480 )
...
Fix checkKeyName issue for `00` case.
2023-10-05 17:26:46 +03:00
Etan Kissling
0cca65904d
reduce `ProveField` warnings in `conf.nim` ( #5485 )
...
Address some verbose `ProveField` warnings and `XCannotRaiseY` hints
in `conf.nim`.
2023-10-05 17:15:03 +03:00
Etan Kissling
dd1f362536
align `Beacon(Block(Body)?|State)Type` with other fork sugar ( #5483 )
...
The templates for `BeaconBlock`, `BeaconBlockBody` and `BeaconState`
are the only ones using a `macro` mechanism for code generation.
This prevents using the dot-syntax style `consensusFork.BeaconFoo`
in some situations, and also tends to trigger naming conflicts,
requiring the `Type` suffix. Furthermore, the `macro` only works
for types that are re-defined in every single `ConsensusFork`.
Replacing with the simpler but more verbose approach used for other
types for consistency and to avoid the downsides of the `macro`.
Furthermore, simplify `test_fixture_sanity_blocks` to use `forks` sugar.
2023-10-05 14:01:40 +02:00
tersec
89686fa274
avoid needlessly rescoring aggregates during block attestation packing ( #5471 )
2023-10-04 22:38:10 +00:00
Etan Kissling
297c768816
reduce redundant zero initialization for LC data objects ( #5479 )
...
Directly initialize `ForkedLightClientObj` instead of separately first
setting the `kind` (initializing everything to zero) and then assigning
the forky data after that.
2023-10-04 18:11:45 +02:00
Etan Kissling
37967ba03b
`ProveField` cleanups in `slashing_protection_common` ( #5477 )
...
Cleanup of `ProveField` warnings in `slashing_protection_common` module.
Note that `ProveField` is disabled by default in makefile, but sometimes
these pop up when doing a regular `nim c`, and cleaning these may allow
enabling the warning in some future.
As the `case` is over `a.kind`, `ProveField` warnings for `b` have to be
suppressed using `{.push.}` / `{.pop.}` for comparison operators.
2023-10-04 10:26:52 +02:00
Etan Kissling
24c68bbcf7
fix `ProveField` warning in `network_metadata` ( #5476 )
...
Spurious `ProveField` warning can be avoided by using `case` instead of
`if` on `metadata.genesis.kind`. Also suppress `GlobalVar` hints when
`incbinEnabled` is used, which has global `let` definitions.
2023-10-04 10:19:05 +02:00
Etan Kissling
bfe76be4d7
debug log duration for processing attestation queue ( #5473 )
...
Depending on the load, processing of queued attestations may take a
while. Log processing duration at debug level.
2023-10-03 22:17:42 +02:00
Etan Kissling
e1a8e9a2fa
rm unused `GenesisStateRef` ( #5469 )
...
In `el_manager`, there was an unused `GenesisStateRef` type. Remove it.
2023-10-02 19:00:23 +00:00
Jacek Sieka
9a48e2e922
fix stale activity log ( #5465 )
2023-09-30 13:31:08 +00:00
Etan Kissling
8aaea1a14e
simplify fork choice test ( #5467 )
...
Reduce overly verbose fork branching logic in fork choice test with
generic implementation based on `consensusFork`.
2023-09-29 13:26:34 +00:00
Jacek Sieka
252473d2d1
ssz: bump ( #5463 )
...
more `zeroMem` avoidance, value semantics for merkleizer
2023-09-28 11:59:33 +00:00
Zahary Karadjov
77d6bc5f42
Merge stable into unstable
2023-09-28 11:32:54 +01:00
tersec
7ecc1096e3
document strange-looking capella/bellatrix apparent mismatch in block building ( #5461 )
2023-09-27 16:06:22 +00:00
Etan Kissling
7c45b8f98d
convert remaining `toFork` -> `kind` for consistency ( #5462 )
...
We currently have multiple ways to obtain `ConsensusFork` or
`LcDataFork` from a forky type. Rename `toFork` to `kind`
for a consistent API naming.
2023-09-27 15:10:28 +00:00
Eugene Kabanov
4fb95d000d
REST server fixes and improvements. ( #5422 )
...
* Move from Option[T] to Opt[T] usage.
* Add `finalized` flag.
* Fix compilation issue.
* Http415 error code for some REST API calls.
Introduce more comprehensive error reporting for block calls.
Deprecate decodeEthConsensusVersion() function.
* Bump http-utils.
* Fix copyright year.
* Fix serialization issue.
* Address review comments.
* Post rebase fixes.
2023-09-27 16:45:33 +02:00
Zahary Karadjov
cfa0268d89
Version 23.9.1
...
Changes:
* Updated network metadata for Holesky
* Use hash_tree_root instead of SHA256 when verifying the Holesky
genesis state
2023-09-25 21:24:25 +01:00
tersec
710f26745d
small attestation pool clean up ( #5458 )
2023-09-24 08:50:48 +00:00
Eugene Kabanov
98e08a9e02
Fix cancellation deprecate warnings. ( #5454 )
...
Add noCancel in exception handlers.
Refactor pending cancellations code.
2023-09-24 09:28:09 +02:00
Eugene Kabanov
e3fe762ec9
Fix unknown fields should be ignored when parsing liveness responses. ( #5418 )
2023-09-23 08:44:54 +02:00
Etan Kissling
47639ef89c
replace `Eth2NetworkMetadata` case object with `Result` ( #5452 )
...
`Eth2NetworkMetadata` has an `incompatible` case to hold an error string
in case the loaded file is not compatible with the compile-time config.
The same can be modeled with a `Result[Eth2NetworkMetadata, string]` and
avoids followup checks for the `incompatible` case.
2023-09-22 23:45:24 +02:00
Etan Kissling
5150505e66
bump `nim-ssz-serialization` to `a5767c1b4992dca3e5bd72557aadd4df0f183bf8` ( #5457 )
...
- nimble/ci updates
- use common super-type in `raisesssz` pragma
2023-09-22 23:44:57 +02:00