Code Monkey home page Code Monkey logo

Comments (4)

melekes avatar melekes commented on July 28, 2024

I strongly support. Don't understand the need to initialize clients separately.

To reset them (in case of a fork) - sure, we must provide a command for doing that. Related issue: cosmos/relayer#6

from relayer-archive.

jackzampolin avatar jackzampolin commented on July 28, 2024

@cmwaters yes this is the case. The lite commands are mainly for testing and admin purposes.

from relayer-archive.

melekes avatar melekes commented on July 28, 2024

Good we've cleared this out 👍 So, relayer initially starts both light clients.

If something goes wrong and one (or both) clients expire (or there's a fork on one of the connected chains), client could be reset with relayer lite reset [chain-id] --trusted-hash=0xaaa --trusted-height=100 OR relayer lite reset [chain-id] --url=https://cosmos.network/hub/trustedsetup (we should receive hash and height and prompt user if that is what she wanted).
NOTE: If an old data conflicts with new data, confirmation step is also necessary (see lite.ConfirmationFunction). --force-yes flag can be used to skip confirmation.

If the user wants to delete all the data (albeit useful info for post analysis might be lost if there was an attack on the light client), she could do so with lite delete [chain-id] (confirmation step is necessary I believe). --force-yes flag can be used to skip confirmation.

We will need to add an API to relayer for both resetting and deleting data. This can be a locally available HTTP API (/lite/reset?chain-id=test&trusted-hash=0xaaa&trusted-height=100, /lite/delete?chain-id=test).

IMHO this can be done later.

from relayer-archive.

jackzampolin avatar jackzampolin commented on July 28, 2024

@melekes adding a HTTP API can def be done later. I'm fine just having the CLI for management now.

from relayer-archive.

Related Issues (20)

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.