def get_ckbunker_status_and_color(): status = "Coldcard Signing Tool" color = "gray" if is_bitcoind_synced(): if is_ckbunker_enabled(): color = get_service_status_color("ckbunker") else: status = "Waiting on Bitcoin" return status, color
def get_btcrpcexplorer_status_and_color_and_ready(): status = "BTC RPC Explorer" color = "gray" ready = False if is_btcrpcexplorer_enabled(): if is_bitcoind_synced(): if is_electrs_active(): color = get_service_status_color("btc_rpc_explorer") status_code = get_service_status_code("btc_rpc_explorer") if status_code == 0: ready = True else: color = "yellow" status = "Waiting on Electrum..." else: color = "yellow" status = "Waiting on bitcoin..." return status, color, ready