Select Page

Category:eIquidus Block Explorer
Sub Category:New Feature
Funding Goal:150000 EXOR(~$341.70 USD total)*
Funded:0 / 150000 EXOR(~$341.70 USD remaining)*
 
Funding Address:ETuf96iwwJum2QRejtyJvg1mkkNu4LprEw
Date Added:17-Dec-2022
URL:https://github.com/team-exor/eiquidus/issues/14
Description:

During the blockchain sync process, the block explorer currently saves transactions only, and does not store or keep track of blocks themselves. This will need to be changed to put together a proper "Latest Blocks" page since reading that data from the Transaction database would be very slow and still require special considerations to work properly.

The following changes will need to be made to add proper support for displaying block data:

  1. A new blocks database collection will need to be added which stores the block height, timestamp, and tx count at a bare minimum. Other fields could optionally be added such as the total value of all coins sent in that block, mined by address, block size, difficulty, bits, nonce, etc.
  2. Add a new save_block function which will be called sometime during the block sync to save block data to local database
  3. Add a new latest blocks page which is similar to the current homepage (latest transactions) but displays 1 block per row. Allow this page to be enabled or disabled
  4. Rename the "index_page" option in the settings.json to "latest_txs_page", and allow it to be enabled or disabled. Also, move it down in the settings file to make it clear it is no longer a built-in page
  5. Add a new global setting to settings.json which allows choosing which page will be the homepage. Default to the new latest blocks page for new installs
  6. All of these changes need to be done in such a way that existing installations will be more-or-less unaffected after upgrading (still display the "Latest Transactions" page as the homepage and do not enable the block page by default for existing installs)

Please note that this feature will require a full resync of the block data to work properly for previously synced blocks and transactions.

* USD estimates are based on the last known EXOR trading price