Giter Site home page Giter Site logo

Comments (8)

acravenho avatar acravenho commented on April 30, 2024 2

😆 "Easy Cowboy! This block doesn't exist yet!"

from blockscout.

gfreh avatar gfreh commented on April 30, 2024

@acravenho I've updated the description and added a suggestion for the block details page in the scenario described by this issue. WDYT?

I've also left a question.

from blockscout.

acravenho avatar acravenho commented on April 30, 2024

@gfreh I think that looks good. I'm not sure I understand the question. As far as differentiating the design, yes, we should have the design different so the user knows this block doesn't really exist yet.

from blockscout.

gfreh avatar gfreh commented on April 30, 2024

@acravenho By differentiating, I mean having a different message when the block is in the past, but we haven't indexed it yet vs. when the block is in the future. Not sure if that makes sense, though 😅

from blockscout.

acravenho avatar acravenho commented on April 30, 2024

🤔 Yes, you're right. That would make sense. It's pretty easy and inexpensive to run the query for the tip of the chain. If below the tip we should provide the exact message that you have above.

from blockscout.

gfreh avatar gfreh commented on April 30, 2024

Nice! Do you have a suggestion for the message in the case the block number is above the tip?

from blockscout.

w-sanches avatar w-sanches commented on April 30, 2024

I'll work on this one

from blockscout.

w-sanches avatar w-sanches commented on April 30, 2024

@acravenho If i'm trying to access a not-indexed block by its hash, should I show that the block is not processed yet or that it does not exist?
I don't know if I can check if that hash is in the past or the future.

Example: https://blockscout.com/poa/core/blocks/0xf511fffa6403456a120edda6e1984a21e99ef2ca580f02f5367abc59bf16cddc/transactions

from blockscout.

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.