快捷搜索:
来自 67677新澳门手机版 2019-11-10 13:42 的文章
当前位置: 67677新澳门手机版 > 67677新澳门手机版 > 正文

67677新澳门手机版比特币测量试验网络

官方网址配置步骤:

翻看节点信息

make getinfo

bitcoin-cli -datadir=1  getinfo
{
  "version": 130200,
  "protocolversion": 70015,
  "walletversion": 130000,
  "balance": 0.00000000,
  "blocks": 0,
  "timeoffset": 0,
  "connections": 1,
  "proxy": "",
  "difficulty": 4.656542373906925e-10,
  "testnet": false,
  "keypoololdest": 1523007398,
  "keypoolsize": 100,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""
}
bitcoin-cli -datadir=2  getinfo
{
  "version": 130200,
  "protocolversion": 70015,
  "walletversion": 130000,
  "balance": 0.00000000,
  "blocks": 0,
  "timeoffset": 0,
  "connections": 1,
  "proxy": "",
  "difficulty": 4.656542373906925e-10,
  "testnet": false,
  "keypoololdest": 1523007399,
  "keypoolsize": 100,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""
}

截图如下

   67677新澳门手机版 1

 

 

给钱包2转账

make sendfrom1   ADDRESS=mg1xSmdUdwGpwQTYaKLRnoG6pN1rCv6NhM  AMOUNT=10

小心这里测量试验地方以m以前,和标准地址以1或3方始是有分别的。

安装Docker社区版

  1. Update the apt package index.

    $ sudo apt-get update
    
  2. Install the latest version of Docker CE, or go to the next step to install a specific version:

    $ sudo apt-get install docker-ce
    

   3.Verify that Docker CE is installed correctly by running the hello-world image.

    $ sudo docker run hello-world

下载比特币测量检验互联网镜像

sudo docker pull freewill/bitcoin-testnet-box

设置Docker社区版旅舍

  1. Update the apt package index:

    $ sudo apt-get update
    
  2. Install packages to allow apt to use a repository over HTTPS:

    $ sudo apt-get install 
        apt-transport-https 
        ca-certificates 
        curl 
        software-properties-common
    
  3. Add Docker’s official GPG key:

    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    
  4. Use the following command to set up the stable repository. You always need the stable repository, even if you want to install builds from the edge or test repositories as well. To add the edge or test repository, add the word edge or test (or both) after the word stable in the commands below.

    $ sudo add-apt-repository 
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu 
       $(lsb_release -cs) 
       stable"
    

翻看节点状态

bitcoin-cli -datadir=1  getinfo
{
  "version": 130200,
  "protocolversion": 70015,
  "walletversion": 130000,
  "balance": 5050.00000000,
  "blocks": 201,
  "timeoffset": 0,
  "connections": 1,
  "proxy": "",
  "difficulty": 4.656542373906925e-10,
  "testnet": false,
  "keypoololdest": 1523009413,
  "keypoolsize": 100,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""
}

能够观看钱袋节点中有50伍13个比特币

查阅钱袋地址

比特币仿效顾客端维护了二个地址池,地址池的大小能够用 getinfo 命令keypoolsize 参数获取。那几个地址是自动生成的,能够被视作公开采用地址或零花钱地址。使用 getnewaddress 命令能够得到此中的一个地方:

bitcoin-cli -datadir=2 getnewaddress
mg1xSmdUdwGpwQTYaKLRnoG6pN1rCv6NhM

或者

make address2
bitcoin-cli -datadir=2  getnewaddress
mzHTLmnduaHZrTWpt2zJXrRSiqX1aoPqek

查阅地址私钥

bitcoin-cli -datadir2  dumpprivkey 'mg1xSmdUdwGpwQTYaKLRnoG6pN1rCv6NhM'

运行Docker镜像

sudo docker run -it -p 19001:19001 -p 19011:19011 freewil/bitcoin-testnet-box

上述命令中的19011 和 19021是安顿给多少个节点提供RPC服务的端口。
-t:在新容器内内定三个伪终端或终点。

-i:允许你对容器内的正规化输入 (STDIN) 举行相互作用。

Install Docker CE

  1. Update the apt package index.

    $ sudo apt-get update
    
  2. Install the latest version of Docker CE, or go to the next step to install a specific version:

    $ sudo apt-get install docker-ce
    

    Got multiple Docker repositories?

    If you have multiple Docker repositories enabled, installing or updating without specifying a version in the apt-get install or apt-get update command always installs the highest possible version, which may not be appropriate for your stability needs.

  3. To install a specific version of Docker CE, list the available versions in the repo, then select and install:

    a. List the versions available in your repo:

    $ apt-cache madison docker-ce
    
    docker-ce | 18.03.0~ce-0~ubuntu | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
    

    b. Install a specific version by its fully qualified package name, which is the package name (docker-ce) plus the version string (2nd column) up to the first hyphen, separated by a an equals sign (=), for example, docker-ce=18.03.0.ce.

    $ sudo apt-get install docker-ce=<VERSION>
    

    The Docker daemon starts automatically.

  4. Verify that Docker CE is installed correctly by running the hello-world image.

    $ sudo docker run hello-world
    

windows系统和Mac系统下载安装包点击安装就足以了。

Install using the repository

Before you install Docker CE for the first time on a new host machine, you need to set up the Docker repository. Afterward, you can install and update Docker from the repository.

获取iamge

docker image pull library/hello-world

查看本机的image

docker image ls

产生100个区块

make generate BLOCKS=100

本文由67677新澳门手机版发布于67677新澳门手机版,转载请注明出处:67677新澳门手机版比特币测量试验网络

关键词: