Code Monkey home page Code Monkey logo

Comments (5)

sirius651 avatar sirius651 commented on September 14, 2024

what would be average of block time generally?

from astar-apps.

bobo-k2 avatar bobo-k2 commented on September 14, 2024

what would be average of block time generally?

I am also unsure, @hoonsubin mentioned it in one conversation and I put it to the ticket. Sounds to me like we need to subscribe for new blocks and calculate average time between blocks

from astar-apps.

hoonsubin avatar hoonsubin commented on September 14, 2024

The average block time can be found here https://github.com/PlasmNetwork/Astar/blob/6573df42d5aa5af8b51e35c1b09fbaa5392f4f97/runtime/shibuya/src/lib.rs#L62
The minimum block time can be queried via api.const.timestamp.minimumPeriod
Screen Shot 2021-11-17 at 9 37 49 AM

from astar-apps.

impelcrypto avatar impelcrypto commented on September 14, 2024

Hi @bobo-k2

Is this issue still status as 'Open'? By the way, this is the code to calculate average block time.

https://github.com/AstarNetwork/astar-apps/blob/main/src/hooks/chain/useAvgBlockTime.ts#L109

from astar-apps.

bobo-k2 avatar bobo-k2 commented on September 14, 2024

Closing as fixed

from astar-apps.

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.