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.
- On any page load event, www_rd_bconf_request.php is invoked.
- 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.
- lin_rd_bconf_launch. py is run every 5 seconds and samples rd_bconf_flag.
- If a ‘1’ is detected, lin_rd_launch.py runs lin_rd_bconf_mbox.py.
- lin_rd_bconf_mbox.py reads the parameters of interest out of the Bitcoin and Bitseed configuration files.
- lin_rd_bconf_mbox.py writes these values as a JSON object to rd_bconf_mbox.
- lin_rd_bconf_mbox.py write a ‘2’ to rd_bconf_flag.
- www_rd_bconf_request detects the value ‘2’ in rd_bconf_flag.
- Upon detection, www_rd_bconf_request.php will read out the contents of rd_bconf_mbox.
- www_rd_bconf_request.php writes the values from rd_bconf_mbox to the UI.
- www_rd_bconf_request.php writes a ‘0’ to rd_rd_bconf_flag which marks the end if this operation.
Figure 1.9 - Reads from Bitcoin and Bitseed Configuration Files to the UI