Я запускаю локальную тестовую сеть из freewil / bitcoin-testnet-box, который я построил и запускался локально (через 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
но все же кажется, что он не подключается к моей локальной тестовой сети, вот скриншот
bitcoin-qt:
вывод docker ps:
хорошо - так вот - вопрос
ВОПРОС: как я могу настроить 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-адрес - есть ли способ сделать это при локальном запуске без использования докера?