Code Monkey home page Code Monkey logo

cosmos-rs's Introduction

cosmos-rs

Rust library and CLI utility for interacting with Cosmos blockchains over gRPC.

cosmos-rs's People

Contributors

aakamenov avatar psibi avatar snoyberg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

nubis

cosmos-rs's Issues

Optionally broadcast transactions to all fallback nodes too

Each Cosmos connection includes one primary node and 0 or more fallback nodes. Generally, we only use the fallback nodes when there's an issue with the primary nodes. However, recently, we've observed an issue with Osmosis where occasionally:

  • Our primary node is working as far as we can tell: queries work, blocks don't lag, etc.
  • Broadcasting transactions to our primary node works, meaning that the broadcast itself succeeds
  • However, the node has issues with its peers and is unable to continue propagating our transaction to validator nodes

One mitigation I thought of: each time we broadcast a transaction, automatically broadcast to all of our fallback nodes too, or at least the ones still marked as healthy. We can ignore any errors that happen during this broadcast. But in theory, this would allow us to route around a primary node that's having peer issues.

Clean up CosmosNetwork parsing/rendering using macros

The CosmosNetwork enum has manually written FromStr and Display impls right now. The problem with this is that, when adding a new variant, it's easy to forget to add it to the FromStr impl. Instead, it would be nice to use a crate that provides macros for deriving those impls, and potentially others (e.g., providing a CosmosNetwork::all helper function).

I've never used either of these, but they're potential crates to investigate:

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.