lodestar
lodestar copied to clipboard
Improve processAttestations time
Describe the bug
most of the time to process a block is for processAttestation
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
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
...