Git Product home page Git Product logo

Comments (8)

cmwaters avatar cmwaters commented on July 24, 2024 1

Anton and I discussed the cli interface and proposed the following changes:

  • Merge the Init and Update Cmd to a start command because they almost do the same thing.

  • Add a getHeader and getValidatorSet command which takes the height as an argument and returns the header and validator respectively. This can be used to confirm that what has been relayed is now in the other blockchain.

from relayer-archive.

melekes avatar melekes commented on July 24, 2024

cc @cmwaters

from relayer-archive.

melekes avatar melekes commented on July 24, 2024

I propose the following sub-commands:

lite reset [chainID] --trusted-hash=0xaaabbb --trusted-height=1
lite reset [chainID] --url https://xyz.com
lite delete [chainID]

lite header chainID # returns latest header without params
lite header chainID 1 # returns header at height 1 (if stored)
lite header chainID -1 # returns first stored header

lite vals chainID # returns latest validator set without params
lite vals chainID 1 # returns validator set at height 1 (if stored)
lite vals chainID -1 # returns first stored validator set

from relayer-archive.

melekes avatar melekes commented on July 24, 2024

Q:

  1. do we need lite stop and lite delete sub-commands? What's the point of stopping the light client? maintenance?
  2. should lite stop also delete all the data? What's the point of having a separate command?

My opinion:
we don't need stop (for now) but delete is required because process can crash and the user will need to manually delete the data sometimes.

from relayer-archive.

jackzampolin avatar jackzampolin commented on July 24, 2024

@melekes agreed with removing stop and adding delete. Like the lite get-header and lite get-valset. Would be nice if you could also use that to query for the roots of trust too.

from relayer-archive.

melekes avatar melekes commented on July 24, 2024

Update the list of sub-commands: cosmos/relayer#1 (comment)

from relayer-archive.

melekes avatar melekes commented on July 24, 2024

Would be nice if you could also use that to query for the roots of trust too.

that's what lite header is for

from relayer-archive.

jackzampolin avatar jackzampolin commented on July 24, 2024

@melekes @cmwaters really enjoyed working with y'all on this. Going to close this issue as complete!

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.