Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions smite-scenarios/src/targets/bitcoind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,20 @@ pub fn start(
/// Creates wallet and generates initial blocks.
fn setup_wallet(cli: &BitcoinCli) -> Result<(), TargetError> {
// Create wallet
let _ = cli
let status = cli
.run()
.arg("createwallet")
.arg("default")
.stdout(Stdio::null())
.stderr(Stdio::null())
.status();
.status()?;

// command fails if wallet already exists (i.e. SMITE_DATA_DIR was mounted)
if !status.success() {
Comment thread
ekzyis marked this conversation as resolved.
return Err(TargetError::StartFailed(
"failed to create wallet (does it already exist?)".into(),
));
}

// Generate initial blocks
let status = cli
Expand Down