bitcoin-tools / bitcoin-tools/nodebuilder

If Bitcoin's already running, check if it's on the target version

Open
#409 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
7
Forks
0
Avg merge
2h 37m
Merged PRs (30d)
28

Description

Before launching Bitcoin, check if it's already running:
- if Bitcoin isn't running do the status quo (launch bitcoin)
- if Bitcoin is running, check the version
- if it's on the target version, don't launch it again
- if it's not on the target version, stop the current pid via `bitcoin-cli`, wait for it to stop, then do the status quo (launch bitcoin).

Contributor guide

Open the contributing guide

Research direction

Locate the Shell code path that launches Bitcoin and trace how its process status and target version are determined. Implement the requested cases: launch when absent, leave a matching version running, or stop and wait for a mismatched version before launching; verify each case against the issue requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
blockchain, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.