// this file implements the explorer for DERO blockchain
// this needs only RPC access
// NOTE: Only use data exported from within the RPC interface, do direct use of exported variables  fom packages
// NOTE: we can use structs defined within the RPCserver package
// This is being developed to track down and confirm some bugs
// NOTE: This is NO longer entirely compliant with the xyz RPC interface ( the pool part is not compliant), currently and can be used as it for their chain,
// atleast for the last 1 year

main

启动服务,运行
6 个 Handler:
search_handler
page_handler
block_handler
txpool_handler
tx_handler
root_handler

浏览器主要包括以下页面功能:

  • 首页、翻页、搜索
  • 区块
  • 交易
  • 交易池

load_block_from_rpc

// load and setup block_info from rpc
// if hash is less than 64 bytes then it is considered a height parameter

rpcClient getblock

load_tx_info_from_tx

// this will fill up the info struct from the tx

load_tx_from_rpc

// load and setup txinfo from rpc

http Post gettransactions

block_handler

tx_handler

pool_handler

fill_tx_structure

// if there is any error, we return back empty
// if pos is wrong we return back
// pos is descending order

show_page

rpcClient get_info

txpool_handler

rpcClient get_info

page_handler

// shows a page

root_handler

// root shows page 0

search_handler

// search handler, finds the items using rpc bruteforce

rpcClient get_info

fill_tx_pool_info

// fill all the tx pool info as per requested

rpcClient gettxpool

results matching ""

    No results matching ""