lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Don't return errors on HTTP API for already-known messages

Open paulhauner opened this issue 3 years ago • 2 comments

Issue Addressed

  • Resolves #3266

Proposed Changes

Return 200 OK rather than an error when a block, attestation or sync message is already known.

Presently, we will log return an error which causes a BN to go "offline" from the VCs perspective which causes the fallback mechanism to do work to try and avoid and upcheck offline nodes. This can be observed as instability in the vc_beacon_nodes_available_count metric.

The current behaviour also causes scary logs for the user. There's nothing to actually be concerned about when we see duplicate messages, this can happen on fallback systems (see code comments).

Additional Info

NA

paulhauner avatar Jul 18 '22 01:07 paulhauner

Thanks! All conflicts resolved. That publish_block function is a nice improvement!

paulhauner avatar Aug 09 '22 04:08 paulhauner

Approved modulo typo fixes!

Thanks! Sorry for zombie-ing those typos again!

paulhauner avatar Aug 09 '22 23:08 paulhauner

bors r+

paulhauner avatar Aug 10 '22 07:08 paulhauner