Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto refresh when block mined #37

Closed
limebell opened this issue Oct 8, 2019 · 18 comments
Assignees

Comments

@limebell
Copy link
Contributor

@limebell limebell commented Oct 8, 2019

It will be great if the main block page is auto refreshed when new block is mined or the chain is swapped.

@MaxStalker

This comment has been minimized.

Copy link
Contributor

@MaxStalker MaxStalker commented Oct 17, 2019

@limebell I would like to help you with this one :)

@MaxStalker

This comment has been minimized.

Copy link
Contributor

@MaxStalker MaxStalker commented Oct 17, 2019

Stumbled into some road blocks here.
Apparently GraphQL API at http://52.231.65.77:5000/graphql/ is not responding.
Wanted to run my own locally, but that one requires BLOCKCHAIN_STORE_PATH - can you tell me what I shall put there?

@dahlia

This comment has been minimized.

Copy link
Member

@dahlia dahlia commented Oct 18, 2019

@MaxStalker Please try this dummy data: https://send.firefox.com/download/2c48e7b706539261/#A3tl2924DprWW68LhDrtoA. It's dumped from my local node.

@MaxStalker

This comment has been minimized.

Copy link
Contributor

@MaxStalker MaxStalker commented Oct 18, 2019

I would really appreciate if you can bring up public graphql endpoint 🙇‍♂
I've encountered several issues with running local version of explorer, unfortunately 😟

@longfin

This comment has been minimized.

Copy link
Member

@longfin longfin commented Oct 18, 2019

I would really appreciate if you can bring up public graphql endpoint 🙇‍♂

@MaxStalker I'll launch public graphql endpoint. please wait for minutes.

@longfin

This comment has been minimized.

Copy link
Member

@longfin longfin commented Oct 18, 2019

I would really appreciate if you can bring up public graphql endpoint 🙇‍♂

@MaxStalker I'll launch public graphql endpoint. please wait for minutes.

@MaxStalker Please try this endpoint.

http://52.231.74.24:31235/graphql

@MaxStalker

This comment has been minimized.

Copy link
Contributor

@MaxStalker MaxStalker commented Oct 18, 2019

Thank you @longfin!
This works perfectly ^__^

@MaxStalker

This comment has been minimized.

Copy link
Contributor

@MaxStalker MaxStalker commented Oct 20, 2019

After I've read through the code I have a feeling that issue is missing some critical points in description :)

  • how one can check that new block was mined? Shall I setup polling and check if there are new blocks in response and then update the view? Or it's possible to setup subscriptions to specific event?
  • "when the chain is swapped" - is this specific event or? How one can observe it?
@limebell

This comment has been minimized.

Copy link
Contributor Author

@limebell limebell commented Oct 21, 2019

After I've read through the code I have a feeling that issue is missing some critical points in description :)

  • how one can check that new block was mined? Shall I setup polling and check if there are new blocks in response and then update the view? Or it's possible to setup subscriptions to specific event?
  • "when the chain is swapped" - is this specific event or? How one can observe it?

@MaxStalker Sorry for late reply. Here's additional description for this issue.

  • Currently, polling should be set because explorer does not have any event for it.
  • If chain is swapped or new block is appened, blockchain's tip will be changed. So by observing blockchain's tip (tip is a blockchain's latest block), u can resolve this issue ;)
@dahlia

This comment has been minimized.

Copy link
Member

@dahlia dahlia commented Oct 21, 2019

At present, the easiest way to implement this would be setting up polling IMO? Or we could declare a subscription at GraphQL level, but this needs to change code on libplanet-explorer (which is a .NET project).

@MaxStalker

This comment has been minimized.

Copy link
Contributor

@MaxStalker MaxStalker commented Oct 21, 2019

Roger.
Next one would be - is it possible to speed up block mining? Last one was mined 4 days ago, which a bit hard to track and check that UI updates correctly :)
Same for chain swap - any way to test it?

@limebell

This comment has been minimized.

Copy link
Contributor Author

@limebell limebell commented Oct 22, 2019

Sorry for inconvenience. Now block explorer is offline and using static blockchain file. We will gonna make it work online, server will be turned off for while 😥

@MaxStalker

This comment has been minimized.

Copy link
Contributor

@MaxStalker MaxStalker commented Oct 22, 2019

Got it.
I think I can mock the response to check that UI is updated properly and then will wait for news from your side ;)

@limebell

This comment has been minimized.

Copy link
Contributor Author

@limebell limebell commented Oct 23, 2019

Currently working on explorer, fixed some problems, still suffering on multiple issues :(

We will do our best and notify you as soon as explorer is online.

@limebell

This comment has been minimized.

Copy link
Contributor Author

@limebell limebell commented Oct 23, 2019

@MaxStalker Explorer is now online :)

@MaxStalker

This comment has been minimized.

Copy link
Contributor

@MaxStalker MaxStalker commented Oct 24, 2019

@longfin @limebell Can you bring that GraphQL api back online? :)
Can't reach it now :\

@longfin

This comment has been minimized.

Copy link
Member

@longfin longfin commented Oct 24, 2019

@longfin @limebell Can you bring that GraphQL api back online? :)
Can't reach it now :\

@MaxStalker I restarted API backend now. please check again.

longfin added a commit that referenced this issue Oct 26, 2019
Auto refresh page
@limebell

This comment has been minimized.

Copy link
Contributor Author

@limebell limebell commented Oct 26, 2019

Closed by #43.

@limebell limebell closed this Oct 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.