我正在运行freewil/bitcoin-testnet-box的本地tesnet,我使用以下命令在本地构建并运行(通过docker *):
docker run -ti --name btcdev -P -p 49020:19000 bitcoin-testnet-box
的灵感来自this issue on 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
但似乎它还没有连接到我的本地testnet,这是一个截图
比特币-QT :
输出'docker ps':
好吧 - 所以 - 这就是quesetion
问题: 我如何配置比特币-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的情况下在本地运行它?
答案 0 :(得分:0)
使用testnet-box运行bitcoin-qt的最简单方法是 make start-gui