Commit Graph

24 Commits

Author SHA1 Message Date
Maciej Hirsz 72806ff282 fix: Failsafe broadcast (#167) 2019-07-31 15:20:47 +02:00
Maciej Hirsz c369be29d1 fix: Send stale nodes when feed connects (#162) 2019-07-02 15:49:41 +02:00
Maciej Hirsz 983919fd87 feat: Instead of delisting, push stale nodes to bottom (#161) 2019-07-02 14:52:06 +02:00
Maciej Hirsz c817a16d31 feat: Don't count stale nodes (#160)
* feat: Don't count stale nodes

* fix: Don't decrement twice when removing a stale node

* chore: Remove unnecessary empty line
2019-07-01 19:16:42 +02:00
Maciej Hirsz 31bc535c5c feat: Hide nodes that fail to sync a block in 15 minutes (#154)
* feat: Hide nodes that fail to sync a block in 15 minutes

* fix: Don't resend stale event if node is already stale
2019-06-20 16:15:32 +02:00
Michael Müller 5d82253257 Display state of Grandpa (#134)
* Make it clear that settings apply only to list view

Since the consensus view will be added users could
mistake the settings as being applied there as well.

* Add Jdenticon

* Add Grandpa consensus visualisation

* Remove fade-in animation

* Update packages and yarn.lock

* Broadcast only delta of what changed

* Minor code improvements

* Use NodeId instead of Address in first dimension

By using the NodeId instead of the Address in the first
dimension of the consensus matrice we save quite some
space in the payload which is sent to the browser.

The commit also contains some minor refactoring.

* Refactoring and improving naming

* Display boxes only after size has been detected

This look a bit nicer, otherwise the UI will still adapt
the box sizes once everything has already been loaded up.

* Fix cache

* Send consensus info on first subscribe

So that frontend can immediately display the current state
and doesn't have to aggregate first.

* Increase cache size

* Send deltas only if block in cache

Otherwise the UI will update old blocks which
are still visible to an empty shell.

* Adjust cache size

* Make cache sizes dependent

* Ensure authority caches are aligned

If only one authority has already submitted consensus info
for a new block then the cache of that one is offset by one
from all other authorities.

* Handle restarts on authority set changes properly

* Fix backfill mechanism

* Extract function

* Display only blocks since last authority set change

* Handle authority set sent on connect

When nodes lose their connection to telemetry
or connect on first time they sent their current
authority set for the UI to have something to
display.

These sets don't contain an explicit block number,
because the set didn't change -- it just got resent.
In this case the set is `undefined`.

* Introduce Authority type

This is necessary to cover the case where one
node connects, submits its authority set containing
another node which has not yet connected to Telemetry.

In this case we still want to create a shell object
and fill it with the address.

* Handle corner case

In the case of only one block having been produced, two authorities,
and only one authority connected, the UI did not show up.

* Display placeholder if name not yet available

* Replace with camelCase

* Replace with correct types

* Replace grandpa icon

* Change consensus icon to cube (finalized block icon)

* Upgrade dependencies

* Implement thin backend instead of thick

* Cleanup and minor improvements

* Minor refactoring

* Extract common code into function

* Switch module to class

* Remove unused code

* Clean markup

* Remove unused code

* Revert "Upgrade dependencies"

This reverts commit bf4d9ea48b3417860ccf40f0c5122027ffc59689.

* Update polkadot-identicon in frontend

Change version number to `^1.1.45` and run
`npm update polkadot-identicon`.

* Run yarn install

* Update react-measure to 2.3.0

Changed version number, ran

	cd packages/frontend/ && npm update react-reasure &&
	cd ../../ && yarn install

* Improve typing by introducing partial type

* Reduce indexing operations

* Shorten function

* Shorten function

* Introduce initialiseConsensusViewByRef

* Remove dead conditional branch

* Return consensusView ref from initialiseConsensusView

*  Handle consensusView ref returned from initialiseConsensusView
2019-05-20 13:20:40 +02:00
Maciej Hirsz 71778e9450 Downgrade finalized block on disconnect (#115) 2019-02-21 16:39:22 +01:00
Maciej Hirsz f9f34c6067 Downgrade block on disconnect (#114) 2019-02-21 16:20:52 +01:00
Maciej Hirsz dc71df7911 Add finalized block info (#104) 2019-02-01 15:53:05 +01:00
Maciej Hirsz 717c5a3ac9 Only update hardware stats when necessary (#73) 2018-10-01 14:10:54 +02:00
Maciej Hirsz df56e33bf6 Deploy script (#52)
* No-downtime deploy script
* Easier to use helper for average numbers
2018-09-25 11:53:57 +02:00
Luke Schoen ee8b76233a fix: Relates to #9. Reuse calculation of average block time
Issues:

* Unable to import `blockAverage` into Chain.ts or Node.ts due to Issue #21.
* TypeScript says `[ts] Module '"/Users/Me/code/blockchain/clones/paritytech/dotstats/packages/common/build/index"' has no exported member 'blockAverage'.`
2018-07-26 18:01:43 +02:00
maciejhirsz 42e7010697 Update block immediately after adding a node to the chain 2018-07-21 08:30:06 +02:00
maciejhirsz 280e0f5c9c Send ping to the node 2018-07-19 15:23:10 +02:00
maciejhirsz 2c073eac19 Working on map view 2018-07-14 22:56:20 +02:00
maciejhirsz bcc7145477 Fix propagation time 2018-07-14 16:54:46 +02:00
maciejhirsz 9ea67d716b Fix propagation time for best block 2018-07-14 15:10:11 +02:00
maciejhirsz ba9931738b Minor CSS fixes 2018-07-14 15:03:24 +02:00
maciejhirsz 4f3e72d506 Ouch... 2018-07-14 11:31:55 +02:00
maciejhirsz ef3f52f5c8 Offline indicator, average block time and stuff 2018-07-13 23:20:29 +02:00
maciejhirsz ea8d7ad77d Sort chains by node count 2018-07-12 16:04:04 +02:00
maciejhirsz 47b80ad30e Display block propagation time 2018-07-08 16:04:55 +02:00
maciejhirsz 538a30ccc3 Reformatting 2018-07-06 17:53:42 +02:00
maciejhirsz 9a8e625df6 Categorize nodes by chains 2018-07-06 15:08:22 +02:00