-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
53 lines (40 loc) · 1.36 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
This is a private, difficulty 1 testnet in a box.
(Testnet Mark 3, as reset for the bitcoin 0.7 release)
Use it as follows:
$ cd ~/testnet-box
$ bitcoind -datadir=1 -daemon
$ bitcoind -datadir=2 -daemon
This will start two nodes. You need two because otherwise the node won't
generate blocks. You now have a private testnet:
$ bitcoind -datadir=1 getinfo
{
"version" : 69900,
"protocolversion" : 60001,
"walletversion" : 60000,
"balance" : 2850.00000000,
"blocks" : 732,
"connections" : 1,
"proxy" : "",
"difficulty" : 1.00000000,
"testnet" : true,
"keypoololdest" : 1338858364,
"keypoolsize" : 6,
"paytxfee" : 0.00000000,
"errors" : ""
}
Node 1 is listening for bitcoin connections on port 19000, and for
RPC connections on port 19001.
Node 2 connects to node 1 and listens for RPC connections on
port 19011 (it does not listen for peer connections).
To start generating blocks, enable generation via the command line:
$ bitcoind -datadir=1 help
$ bitcoind -datadir=1 setgenerate true
or
$ bitcoind -datadir=2 setgenerate true
To generate blocks using an external miner, point
the miner at http://{rpcuser}:{rpcpassword}@127.0.0.1:{rpcport}
For example:
$ cd ~/DiabloMiner
$ ./DiabloMiner-Linux.sh --url http://test:[email protected]:19001
or
$ ./DiabloMiner-Linux.sh --url http://test:[email protected]:19011