Comments (4)
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.
@cmwaters yes this is the case. The lite
commands are mainly for testing and admin purposes.
from relayer-archive.
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.
@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)
- Limit and pages flags in query txs are igonred
- Code 6 when calling `rly transact raw update-client` HOT 5
- Empty packet data or ack fails signature verification
- Error when linking chains
- Add order chantypes.Order to PathEnd HOT 1
- Use lite client to verify all data coming back from queries HOT 1
- Improve logging in the handshake code HOT 1
- Better control flow for Connection and Channel commands HOT 1
- Dynamic unbonding time HOT 1
- Basic web-hook alerting system HOT 3
- Move Strategies to Paths
- Migrate ci-chains.sh to new configuration format HOT 1
- Cannot add path for the two chains HOT 3
- No ’relayer q balance‘ likely HOT 1
- GolangCI-Lint Error HOT 2
- Fail to make it on ubuntu HOT 1
- err(channels: channel not found) HOT 1
- Atomic swap support HOT 1
- Issue with the instructions in the Readme file? HOT 3
- rly paths add ibc error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relayer-archive.