Giter VIP home page Giter VIP logo

Comments (9)

abhay avatar abhay commented on June 15, 2024 1

Potentially don't bother showing this data for any transactions before block 123479 (when poc_v4_exclusion_cells was set at poc_version = 4) or 200500 (when poc_max_hop_cells was set at poc_version = 8).

from explorer.

abhay avatar abhay commented on June 15, 2024

Since we check max distance (poc_max_hop_cells) and hex distance (poc_v4_exclusion_cells) we should show those instead?

from explorer.

danielcolinjames avatar danielcolinjames commented on June 15, 2024

@abhay what would that way look like in the UI? I'm not too familiar with h3 yet or what those chain vars represent exactly, so I'm not quite sure how I'd implement that or how well it would solve the user problem here. Would that be an overlay on the map? Do you think that's something I could add in addition to the way @cokes518 suggested above?

I was just about to add it the way Coco suggested by converting from h3 to lat/lon and using this function and just printing out the distance when I saw your comment, so not sure how to proceed on this for now.

from explorer.

abhay avatar abhay commented on June 15, 2024

@danielcolinjames hotspots have an h3 which represents the cell so you want to do distance between h3 indexes at the very least. From there you can see if it's within the range of the chain vars.

from explorer.

danielcolinjames avatar danielcolinjames commented on June 15, 2024

@abhay ah okay perfect, I get it now, thank you! I'll see if I can figure out some way to colour it with a success / fail colour without looking awful too...

from explorer.

abhay avatar abhay commented on June 15, 2024

I'm sure it'll look πŸ’―

from explorer.

danielcolinjames avatar danielcolinjames commented on June 15, 2024

Thanks, that's really helpful to know, will do some tests with transactions around those block numbers and see πŸ‘

Also, just to double check, if a distance == 8, it's excluded right? I.e. the rule is: valid = distance > 8 && distance < 2000, rather than >= 8 && <= 2000, right?

(Obviously won't hard code the values)

from explorer.

danielcolinjames avatar danielcolinjames commented on June 15, 2024

Please ignore the design of this, just testing locally, but I think I'm going to rearrange the layout of the witness info to something like this:
Screen Shot 2020-11-09 at 4 58 03 PM

Also I might have gotten some labels wrong, please let me know if I did. Just trying to make it easier to get all the information in one view, and the long string of numbers was getting a little hard to read. I figure using the full terms is probably better than acronyms too. I might also play with making the witness list for each step expandable, and perhaps collapsed by default...

from explorer.

abhay avatar abhay commented on June 15, 2024

Also, just to double check, if a distance == 8, it's excluded right? I.e. the rule is: valid = distance > 8 && distance < 2000, rather than >= 8 && <= 2000, right?

valid ~= poc_v4_exclusion_cells <= hex_distance < poc_max_hop_cells

low end: https://github.com/helium/blockchain-core/blob/master/src/poc/blockchain_poc_path_v4.erl#L335-L346
high end: https://github.com/helium/blockchain-core/blob/master/src/poc/blockchain_poc_path_v4.erl#L319-L330

from explorer.

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.