From 44d821a5bfc8a4683d7590a3540764d3afc0b1b4 Mon Sep 17 00:00:00 2001 From: Eagle[TM] Date: Thu, 14 Nov 2013 13:18:01 +0100 Subject: [PATCH] Update docs: txindex in README, reindex in HOWTO --- HOWTO.md | 12 +++++++++--- README.leveldb | 13 ++++++++----- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/HOWTO.md b/HOWTO.md index ac0cd48..fafcb76 100644 --- a/HOWTO.md +++ b/HOWTO.md @@ -97,11 +97,11 @@ our ~/bin directory: $ chmod +x ~/src/electrum/server/server.py $ ln -s ~/src/electrum/server/server.py ~/bin/electrum-server -### Step 3. Download Bitcoind +### Step 3. Download bitcoind Older versions of Electrum used to require a patched version of bitcoind. This is not the case anymore since bitcoind supports the 'txindex' option. -We currently recommend bitcoind 0.8.5 stable. +We currently recommend bitcoind 0.8.5 stable. ### Step 4. Configure and start bitcoind @@ -119,7 +119,13 @@ Write this in `bitcoin.conf`: daemon=1 txindex=1 -Restart `bitcoind`: + +If you have an existing installation of bitcoind and have not previously, +set txindex=1 you need to reindex the blockchain by running + + $ bitcoind -reindex + +If you have a fresh copy of bitcoind start `bitcoind`: $ bitcoind diff --git a/README.leveldb b/README.leveldb index 78d86a3..ff08823 100644 --- a/README.leveldb +++ b/README.leveldb @@ -4,18 +4,21 @@ Pruning nodes use a lightweight database to store address histories. Only unspent coins are kept in that database; spent outputs are pruned. - +As of November 2013 all public servers operate this way. +Please see HOWTO.md for more detailled information. The following is a +short outline: __________________________________________________________ -1. patch and compile bitcoind. +1. Run bitcoind. -Install version 0.8 or equivalent. -Patch it with the patch distributed with Electrum. +Install version 0.8.5 or higher. +There is no need to patch bitcoind anymore. +You need to run it with the config option txindex=1 . +If you have not previously done so, you may need to reindex the bitcoind blockchain Note: Even though Electrum's database uses pruning, you cannot use it with a ultra-pruning bitcoind (forthcoming in 0.9 or later). A full bitcoin node is required in order to know for each address if it has been used. Pruning occurs only at the level of the Electrum database. -txindex=1 however is *not* needed! __________________________________________________________ -- 1.7.1