From 29616232c5386c39dc82459ca0fab808c6861c7d Mon Sep 17 00:00:00 2001 From: Rishabh Date: Wed, 17 Jul 2024 17:00:41 +0530 Subject: [PATCH] chore: pre release changes --- src/bin/bitbrew.ts | 4 ++-- src/controllers/nodeController.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/bitbrew.ts b/src/bin/bitbrew.ts index 4ea2e9f..c762711 100644 --- a/src/bin/bitbrew.ts +++ b/src/bin/bitbrew.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env node --no-warnings +#!/usr/bin/env -S node --no-warnings import { Command } from 'commander'; import figlet from 'figlet'; import chalk from 'chalk'; @@ -44,12 +44,12 @@ program.addCommand(LsCommand); program.addCommand(StartCommand); program.addCommand(StopCommand); program.addCommand(AddCommand); -program.addCommand(CleanCommand); program.addCommand(RemoveCommand); program.addCommand(ExecCommand); program.addCommand(AttachCommand); program.addCommand(WalletCommand); program.addCommand(SendCommand); program.addCommand(MineCommand); +program.addCommand(CleanCommand); program.parse(process.argv); diff --git a/src/controllers/nodeController.ts b/src/controllers/nodeController.ts index b32f58f..018bbe5 100644 --- a/src/controllers/nodeController.ts +++ b/src/controllers/nodeController.ts @@ -19,7 +19,7 @@ export class NodeController { fs.mkdirSync(node.dataDir, { recursive: true }); } - const imageName = `rishkwal/bitbrew-bitcoin-core:27.0-0.1.0-alpha`; + const imageName = `rishkwal/bitbrew-bitcoind:27.0-0.1.0-alpha`; let images = await this.dockerController.docker.listImages({ filters: { reference: [imageName] }, }); @@ -81,8 +81,8 @@ export class NodeController { }, HostConfig: { Binds: [ - `${node.dataDir}:/home/bitcoin/.bitcoin`, - `${this.stateController.getWalletsDir()}:/home/bitcoin/.bitcoin/regtest/wallets`, + `${node.dataDir}:/root/.bitcoin`, + `${this.stateController.getWalletsDir()}:/root/.bitcoin/regtest/wallets`, ], PortBindings: { '18444/tcp': [{ HostPort: node.hostPort.toString() }],