Skip to content

1.3.2 Process Flow: Bitcoin and Bitseed Configuration Reads

John Light edited this page Jul 17, 2016 · 1 revision

Reads correspond to values being read out of the Bitcoin and Bitseed configuration files and written to the UI. The steps that are taken to perform a read operation are shown below in the order that they occur. These steps are also indicated in Figure 1.9 below.

  1. On any page load event, www_rd_bconf_request.php is invoked.
  2. www_rd_bconf_request.php issues a read request by writing a ‘1’ to rd_bconf_flag. It then begins polling for a ‘2’ in the rd_bconf_flag file every 5 seconds.
  3. lin_rd_bconf_launch. py is run every 5 seconds and samples rd_bconf_flag.
  4. If a ‘1’ is detected, lin_rd_launch.py runs lin_rd_bconf_mbox.py.
  5. lin_rd_bconf_mbox.py reads the parameters of interest out of the Bitcoin and Bitseed configuration files.
  6. lin_rd_bconf_mbox.py writes these values as a JSON object to rd_bconf_mbox.
  7. lin_rd_bconf_mbox.py write a ‘2’ to rd_bconf_flag.
  8. www_rd_bconf_request detects the value ‘2’ in rd_bconf_flag.
  9. Upon detection, www_rd_bconf_request.php will read out the contents of rd_bconf_mbox.
  10. www_rd_bconf_request.php writes the values from rd_bconf_mbox to the UI.
  11. www_rd_bconf_request.php writes a ‘0’ to rd_rd_bconf_flag which marks the end if this operation.

Figure 1.9
Figure 1.9 - Reads from Bitcoin and Bitseed Configuration Files to the UI