mimblewimble / grin-explorer

Blockchain explorer for grin
GNU Affero General Public License v3.0
59 stars 53 forks source link

view all block with total_difficulty greater than x #12

Closed antiochp closed 5 years ago

antiochp commented 6 years ago

As a node operator it would be really useful to view blocks (chain heads?) that are known about that have higher total_difficulty than me. Particularly in testnet1 with the wide variety of forks in play right now.

sesam commented 6 years ago

Dreaming up code for the block view page

        context["more_work_blocks_list"] = Block.objects.filter(height__gt=block.height)

... and then filter this down to only get the heads+tails of each chain without the blocks in between. Maybe nicely doable with something like a "sieve of Eratosthenes" but filtering block ancestors instead.

antiochp commented 5 years ago

Closing this as really old.