Skip to content

Explorer refactor - Enable a new generation of Sia applications

Created by: nitronick600

1.) Block query ranges. You can provide a to and from query parameter with a maximum of 10 blocks to retrieve 2.) Websockets for consensus and pending transaction updates. This will be the most interesting change, since it will enable real-time sites. Websockets enable server push mechanisms, so data will be available to clients in real time. 3.) HashType bucket. To keep from having to lookup into every hash bucket, we keep track of the hash type as it's inserted. This acts as an index and gives us a constant-time lookup of hashes without having to scan every hash bucket 4.) Consistency fixes. I've removed some logic which causes the explorer to fail. This makes the explorer more resilient and reduces the instance of "block not found" errors in the explorer. 5.) In memory pending block. We keep a copy of the current, pending block in memory. This allows us to add/remove transactions and update block facts without having to commit to any DB when pending txs are received

Merge request reports