forked from jgarzik/picocoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
120 lines (80 loc) · 2.46 KB
/
README
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
Tiny bitcoin library, with lightweight client and utils
libccoin library dependencies:
GLib 2.x (from the GTK project)
OpenSSL
picocoin client dependencies:
GLib 2.x (from the GTK project)
OpenSSL
libevent 2.x
jansson 2.x (2.1 used for development)
block relay daemon (brd) dependencies:
GLib 2.x (from the GTK project)
OpenSSL
libevent 2.x
Command line and configuration file usage
=========================================
In general, the program stores settings in a key/value map. These key=value
parameters may be specified on the command line, or in a configuration file.
The command line is processed in-order. For example
$ ./picocoin value=1 list-settings value=2 list-settings
will execute the "list-settings" command twice, each with "value" setting
initialized to a different parameter.
Similarly, you may read multiple configuration files into the settings map:
$ ./picocoin config=file1 config=file2 config=file3
Recognized parameters
=====================
addnode
------------------
Format: address SPACE port
Manually add P2P node to peer manager.
config (alias "c")
------------------
Specify a pathname to the configuration file.
wallet (alias "w")
------------------
Specify a pathname to the wallet data file. Default "picocoin.wallet"
AES encryption is applied to the wallet. Passphrase is specified via
environment variable PICOCOIN_PASSPHRASE.
debug
------------------
Enable additional debug output.
net.connect.timeout
------------------
TCP connect(2) timeout.
Recognized commands
===================
chain-set
---------
Select blockchain and network. Reads the "chain" settings variable.
Acceptable values are "chain=bitcoin" and "chain=testnet3". Updates
internal parameters (pchMessageStart / network magic, genesis block, ...)
dns-seeds
---------
Query and display bitcoin DNS seeds, for P2P node addresses.
help
----
Output these commands and recognized settings.
list-settings
-------------
Display settings map.
new-address
-----------
Generate a new bitcoin address (ECDSA keypair). Store it in the current
wallet,
new-wallet
----------
Initialize a new wallet. Refuses to initialize, if the filename already
exists.
netsync
-------
Synchronize with network: send any pending payments, and check for
new incoming payments.
wallet-addr
-----------
List all bitcoin addresses in wallet.
wallet-dump
-----------
Dump entire wallet contents, including all private keys.
wallet-info
-----------
Informational summary of wallet data.