/block-validation-geth

To be deprecated in favor of https://github.com/flashbots/builder

Primary LanguageGoGNU Lesser General Public License v3.0LGPL-3.0

Archived: This repo is no longer used by flashbots.

This repo is deprecated in favor of the validation API in the flashbots builder.

We are phasing out this repository because we have made the builder repository open source. To avoid the extra work involved in testing two repositories, which increases the chance of errors, we have decided to focus only on verifying the builder repository. The additional effort required to maintain separate changes for the sole purpose of separation is outweighed by the extra testing needed.

Use https://github.com/flashbots/builder for block validation.

original readme

Block validation API

Geth with additional RPC method flashbots_validateBuilderSubmissionV1.
The new method accepts github.com/flashbots/go-boost-utils/types.BuilderSubmitBlockRequest - boost relay builders' block submission.
It will ensure that the block is valid and that it transfers the expected funds to the fee recipient.

Blacklisting

By default the node will load blacklisted addresses from ofac_blacklist.json from working directory. You can specify the path to the file via --builder.validation_blacklist.

The default OFAC blacklist is provided with this repository in ofac_blacklist.json.