7131 Commits

Author SHA1 Message Date
Etan Kissling
2a15ec0432
Merge branch 'dev/etan/df-safeiter' into feat/splitview 2024-04-03 12:39:29 +02:00
Etan Kissling
0363f23527
fix 2024-04-03 12:38:49 +02:00
Etan Kissling
4034ad43a0
Merge branch 'dev/etan/df-safeiter' into feat/splitview 2024-04-03 11:31:07 +02:00
Etan Kissling
381375be4d
avoid modifying blobless collection during iteration in edge case
The fallback when blobless quarantine contains a block with all blobs
modifies collection while iterating, potentially asserting if reachable.
Using a second loop to process this situation resolves that.
2024-04-03 11:29:17 +02:00
Etan Kissling
6a318d0f1a
avoid rejecting empty era file in verification (#6163)
`batchVerify`'s precondition is a non-empty signature list:

```nim
  if input.len == 0:
    # Spec precondition
    return false
```

This means that in eras without any blocks (as has happened on Goerli),
calling it leads to era files being reported as invalid.
2024-04-03 10:06:21 +02:00
Etan Kissling
0000f81df0
remove unused and redundant PayloadID type definition (#6165)
`PayloadID` is defined in `nim-web3` and our own Bellatrix definition
can be removed.
2024-04-03 07:27:00 +02:00
tersec
27ec2893ff
rm unused parameters of get_state_exit_queue_info() (#6167) 2024-04-03 01:45:57 +00:00
Etan Kissling
5f4fa9ae69
avoid code repetition across forks for signed block contents (#6150)
Use forks sugar to make `RestPublishedSignedBlockContents` more concise.
2024-04-03 02:05:29 +02:00
Etan Kissling
b9dc804023
Merge branch 'dev/etan/dt-putblob' into feat/splitview 2024-04-02 23:19:38 +02:00
Etan Kissling
89529b6232
pass cfg 2024-04-02 23:18:52 +02:00
Etan Kissling
eeae3dafa2
Merge branch 'dev/etan/dt-putblob' into feat/splitview 2024-04-02 22:24:44 +02:00
Etan Kissling
dcd88976d8
add function to import blobs to ncli_db
`ncli_db` does not support importing blobs, making it impossible to
complete the database solely from dumped files. Add the missing support.
2024-04-02 22:19:37 +02:00
Etan Kissling
c5b4ae493a
Merge branch 'unstable' into dev/etan/zf-branchpull 2024-04-02 18:24:14 +02:00
Etan Kissling
95a2fdec90
Merge branch 'unstable' into dev/etan/vd-incprop 2024-04-02 18:24:03 +02:00
Etan Kissling
5eeadad05f
Merge branch 'dev/etan/ex-fincp' into feat/splitview 2024-04-02 18:22:33 +02:00
Etan Kissling
6726baf911
allow frontfilling finalized CP block from era file
Add support for using era file for the initial checkpoint block.
This should also avoid an error when the beacon node is restarted
before the backfill process has made any progress (#6059).
2024-04-02 18:21:37 +02:00
Etan Kissling
2ffe49fa10
Merge branch 'dev/etan/ex-emptyera' into feat/splitview 2024-04-02 17:51:31 +02:00
Etan Kissling
f8f704501b
Merge branch 'unstable' into feat/splitview 2024-04-02 17:51:08 +02:00
Etan Kissling
6cfcd873fd
avoid rejecting empty era file in verification
`batchVerify`'s precondition is a non-empty signature list:

```nim
  if input.len == 0:
    # Spec precondition
    return false
```

This means that in eras without any blocks (as has happened on Goerli),
calling it leads to era files being reported as invalid.
2024-04-02 17:49:46 +02:00
tersec
109007dc93
avoid quadratic behavior exiting validators (#6161)
* avoid quadratic behavior exiting validators

* fix libnfuzz callers
2024-04-02 12:18:40 +00:00
Etan Kissling
3c7ac28359
Merge branch 'dev/etan/af-cacheinit' into feat/splitview 2024-04-01 01:00:52 +02:00
Etan Kissling
d5efbdae1d
Merge branch 'unstable' into feat/splitview 2024-04-01 01:00:21 +02:00
Etan Kissling
171d889878
fix initialization of sync committee cache after loading non-epoch state
When initializing from a state that's not aligned to an epoch boundary,
an earlier state is loaded that's epoch aligned, and subsequently topped
up with the missing blocks. `dag.headSyncCommittee` is initialized prior
to topping up the missing blocks, though. If the sync committee changes
while applying the blocks (e.g., a sync committee period boundary hits),
the cached information becomes unlinked from `dag.head`, leading to
valid blocks based on that chain being rejected. To fix this, move cache
initialization after the top up with blocks. This has been observed on
Goerli by initializing from 7919502 and attempting to top up 7920111.
The block gets rejected with an invalid state root on nodes that have
restarted after setting 7920111 as head, while it gets accepted by all
other nodes. Error message is `block: state root verification failed`.
The incorrect initialization behaviour was introduced in #4592, before
which the sync committee cache was initialized after applying blocks.
2024-04-01 00:59:28 +02:00
tersec
4457334dd0
Add support for Pectra ExecutionPayload representations (#6158) 2024-03-29 13:37:27 +01:00
tersec
54ccb24782
Revert "bump nim-libbacktrace handle special characters in source paths (#6142)" (#6157)
This reverts commit f590970fd3cac00516593b258432ce669030f009.
2024-03-29 06:15:11 +00:00
tersec
c42a1f2863
Merge remote-tracking branch 'origin/stable' into unstable 2024-03-29 02:47:44 +00:00
tersec
dc19b082a9
update release date for v24.3.0 v24.3.0 2024-03-29 02:26:30 +00:00
Jacek Sieka
79898934dc
ssz: bump (#6155)
should fix `dereferencing pointer to incomplete type` errors seen on
some gcc versions
2024-03-29 01:17:35 +00:00
Jacek Sieka
0495c15a23
ssz: bump (#6155)
should fix `dereferencing pointer to incomplete type` errors seen on
some gcc versions
2024-03-29 00:09:43 +01:00
Etan Kissling
e677d98119
fix check docs stage in jenkins (#6156)
Ignore color information when checking consistency of options.md with
the built binary.
2024-03-28 21:37:21 +01:00
0fa363e022
ci: move help docs check script to its own file (#6140)
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-03-28 10:01:15 +01:00
tersec
3ceb26ba23
Merge remote-tracking branch 'origin/stable' into unstable 2024-03-28 06:19:26 +00:00
tersec
b21bc1d478
Version v24.3.0 2024-03-28 05:23:23 +00:00
tersec
17279f261b
detect invalid REST blocks (#6152) 2024-03-28 03:34:06 +00:00
tersec
df9112d663
detect invalid REST blocks (#6152) 2024-03-28 03:32:33 +00:00
Etan Kissling
2f91bc3be7
peers can no longer be nil (#6151) 2024-03-28 01:42:20 +01:00
Etan Kissling
e4c4d11480
Merge branch 'dev/etan/nw-nilpeer' into feat/splitview 2024-03-28 01:40:00 +01:00
Etan Kissling
95aed2b220
filter out nil values when iterating peers
Iterating peers should only yield peers present in registry, otherwise
`nil` pointers are returned and depending on comparison function it will
break, see #6149.
2024-03-28 01:38:49 +01:00
Etan Kissling
ee80daba2a
Merge branch 'dev/etan/nw-ranking' into feat/splitview 2024-03-27 23:32:22 +01:00
Etan Kissling
5fb293c595
explain the < usage 2024-03-27 23:31:02 +01:00
Etan Kissling
0f679d9463
Merge branch 'unstable' into feat/splitview 2024-03-27 23:13:58 +01:00
Etan Kissling
40242ac277
rank peers by their score instead of their memory address
The `<` function to compare peers was not exported, leading to the same
peer be acquired over and over again until kick. `mixin` doesn't pull it
into `peerCmp` without `*` export, and with the export no mixin needed.
2024-03-27 23:10:42 +01:00
diegomrsantos
885989f3df
bump libp2p (#6148) 2024-03-27 15:53:02 +00:00
Etan Kissling
55a5ffaf8c
Merge branch 'dev/etan/zf-branchpull' into feat/splitview 2024-03-27 16:40:29 +01:00
Etan Kissling
b37ad4dccb
fix 2024-03-27 16:39:42 +01:00
Etan Kissling
3ab0767b35
Merge branch 'dev/etan/zf-branchpull' into feat/splitview 2024-03-27 16:25:07 +01:00
Etan Kissling
986c548b00
fix 2024-03-27 16:24:26 +01:00
Etan Kissling
b869546524
Merge branch 'dev/etan/zf-branchpull' into feat/splitview 2024-03-27 16:14:38 +01:00
Etan Kissling
ce19875583
Merge branch 'unstable' into feat/splitview 2024-03-27 16:14:13 +01:00
Etan Kissling
3376887ba7
add research notes 2024-03-27 16:00:51 +01:00