fix typo, add 1 phrase.
[electrum-server.git] / README.leveldb
1 How to run a pruning node with leveldb
2
3 Pruning nodes use a lightweight database to store address histories.
4 Only unspent coins are kept in that database; spent outputs are
5 pruned.
6
7
8 __________________________________________________________
9 1. patch and compile bitcoind.
10
11 Install version 0.8 or equivalent.
12 Patch it with the patch distributed with Electrum.
13
14 Note: Even though Electrum's database uses pruning, you cannot use it
15 with a pruning bitcoind. A full bitcoin node is required in order to
16 know for each address if it has been used. Pruning occurs only at the
17 level of the Electrum database.
18
19 __________________________________________________________
20
21 2. Install python-leveldb: 
22
23 sudo apt-get install python-leveldb
24
25 __________________________________________________________
26
27 3. edit /etc/electrum.conf : 
28
29 [server]
30 backend = leveldb
31
32 [leveldb]
33 path = /path/to/your/database
34
35 ______________________________________________________________
36
37 4. catch up with the blockchain.
38
39 In order to speed up the initial catch_up phase, it is recommended to
40 locate your database in shared memory:
41
42  path = /run/shm/electrum_db
43
44 Once your server has finished catching up, copy your database to disk
45 and update the path in /etc/electrum.conf
46
47 During the catch_up phase, you can interrupt the server with Ctrl-C;
48 it will safely write the current status in the database and exit.
49
50 _________________________________
51
52 5. enjoy!
53
54 Once the server is synchronized, it will listen to ports, and the
55 normal way to stop it is to type: ./server.py stop
56
57 Other commands are available: 
58
59 ./server info   : view connections
60 ./server load   : view the size of the queue
61
62
63