Giter Site home page Giter Site logo

mock-relay's Introduction

mock-relay

This is a simple service implementing the mev-boost relay API. This is meant to be used as testing tool for consensus clients, especially in testnets where an actual relay might not be available (i.e, local testnets).

  • engine_forkchoiceUpdatedV1 - Calls here are forwarded to the local execution engine.
  • relay_getPayloadHeaderV1 - Calls here are transformed into engine_getPayloadV1 requests and sent to the local execution engine. The response's full payload is cached and then converted into a payload header before being returned to the caller. Currently, SignedMEVPayloadHeader will have an empty signature, but this will likely be updated in the future.
  • relay_proposeBlindedBlockV1 - The transactions_root of the blinded block is used to retrieve and return the cached full payload. This relay does not actually propose the block, this may also be added in the future.

Build

This will install, in mock-relay in ~/.cargo/bin. Rust is required.

make

Run

By default, mock-relay runs on 127.0.0.1:8650 and attempts to connect to an execution engine on 8551. A JWT secret is required, the same one used by the execution engine you are attempting to connect to.

./mock-relay --jwt-secret YOUR_JWT_SECRET_PATH

mock-relay's People

Contributors

realbigsean avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.