lodestar icon indicating copy to clipboard operation
lodestar copied to clipboard

Improve processAttestations time

Open twoeths opened this issue 1 month ago • 1 comments

Describe the bug

most of the time to process a block is for processAttestation

Image

after electra, a validator could appear in multiple packed attestations, hence we should ignore the 2nd appearance onward

Expected behavior

process attestation of a validator at most once per block

Steps to reproduce

No response

Additional context

No response

Operating system

Linux

Lodestar version or commit hash

v1.36.0

twoeths avatar Nov 20 '25 19:11 twoeths

a lot of 0 in my log:

Nov 21 22:16:31 feat1-lg1k-hzax41-sas beacon_run.sh[3821539]: flagsNewSet:  0
Nov 21 22:16:31 feat1-lg1k-hzax41-sas beacon_run.sh[3821539]: flagsNewSet:  0
Nov 21 22:16:31 feat1-lg1k-hzax41-sas beacon_run.sh[3821539]: flagsNewSet:  0
Nov 21 22:16:31 feat1-lg1k-hzax41-sas beacon_run.sh[3821539]: flagsNewSet:  0
Nov 21 22:16:31 feat1-lg1k-hzax41-sas beacon_run.sh[3821539]: flagsNewSet:  0
Nov 21 22:16:31 feat1-lg1k-hzax41-sas beacon_run.sh[3821539]: flagsNewSet:  0
Nov 21 22:16:31 feat1-lg1k-hzax41-sas beacon_run.sh[3821539]: flagsNewSet:  0
Nov 21 22:16:31 feat1-lg1k-hzax41-sas beacon_run.sh[3821539]: flagsNewSet:  0
Nov 21 22:16:31 feat1-lg1k-hzax41-sas beacon_run.sh[3821539]: flagsNewSet:  0
Nov 21 22:16:31 feat1-lg1k-hzax41-sas beacon_run.sh[3821539]: flagsNewSet:  0
...

twoeths avatar Nov 21 '25 22:11 twoeths