Code Monkey home page Code Monkey logo

Comments (4)

calvinaco avatar calvinaco commented on July 20, 2024

From the previous study there seems to be no way one can adjust the timeout of Tendermint broadcast. So we may want to do our own polling of transaction status to extend the timeout.

from chain-desktop-wallet.

crypto-eddy avatar crypto-eddy commented on July 20, 2024

The tricky part with this is we can't poll transaction state later because we don't even get a transaction hash that we could use later to fetch whether the transaction state.

I remember I worked on cosmos integration for the Trust Wallet back at Binance, and there was a broadcast async API that I ended up using since it didn't have time out issues. Not sure if that API is supported yet by cro chain.

So we'd broadcast transactions and consider them as pending and then later we'd poll the state via the transaction hash to check if they finally got confirmed in the block.

from chain-desktop-wallet.

crypto-eddy avatar crypto-eddy commented on July 20, 2024

The approach I'm planning to implement is to let the user know that the transaction timed out when it occurs and inform them that it will be included in subsequent blocks.

When we already have the chain index data in place, we can always fetch the latest transactions from that endpoint and it would show up

from chain-desktop-wallet.

crypto-eddy avatar crypto-eddy commented on July 20, 2024

Fixed here #111

from chain-desktop-wallet.

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.