0

我正在从freewil/bitcoin-testnet-box运行本地 tesnet ,我在本地(通过 docker*)构建并运行它,使用以下命令:

docker run -ti --name btcdev -P -p 49020:19000 bitcoin-testnet-box

无论如何,这是受到github 上这个问题的建议的启发- 这里看起来如何:

bitcoin-dev-box, and mapping it's internal port 19000 to your localhost:49020
$ docker run -ti --name btcdev -P -p 49020:19000 poliver/bitcoin-dev-box

关于为什么以这种方式运行它的建议如下:

The connect parameter is the server address. 
If you leave it blank it will connect to the bitcoin network directly. 
In the case above it's going to connect to your bitcoin testnet running inside the docker container. 
It's connecting to localhost:49020 which should be talking to the network inside the docker container if you mapped it to that port when you started bitcoin-dev-box.

然后我使用以下命令运行 bitcoin-qt:

# Running bitcoin-dev-box, and mapping it's internal port 19000 to your localhost:49020
$ docker run -ti --name btcdev -P -p 49020:19000 poliver/bitcoin-dev-box

但它似乎仍然没有连接到我的本地测试网,这是一个截图

比特币-qt

sss

'docker ps' 的输出

zzz

好吧-所以-问题来了

问题:我如何配置 bitcoin-qt 或另一个钱包 - 这样它只会从我的本地测试网加载数据,只有两个节点,在我自己的机器上,看起来像这样:

bitcoin-cli -datadir=1  getinfo
{
    "version" : 90300,
    "protocolversion" : 70002,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 0,
    "timeoffset" : 0,
    "connections" : 1,
    "proxy" : "",
    "difficulty" : 0.00000000,
    "testnet" : false,
    "keypoololdest" : 1413617762,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "relayfee" : 0.00001000,
    "errors" : ""
}
bitcoin-cli -datadir=2  getinfo
{
    "version" : 90300,
    "protocolversion" : 70002,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 0,
    "timeoffset" : 0,
    "connections" : 1,
    "proxy" : "",
    "difficulty" : 0.00000000,
    "testnet" : false,
    "keypoololdest" : 1413617762,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "relayfee" : 0.00001000,
    "errors" : ""
}

*这样我就可以自己设置IP地址-有没有办法在不使用docker的情况下在本地运行它?

4

1 回答 1

-1

使用 testnet-box 运行 bitcoin-qt 的最简单方法是 make start-gui

于 2016-08-09T14:59:34.587 回答