Update instructions.

This commit is contained in:
JoelKatz
2013-05-04 01:24:35 -07:00
parent 1938a30c67
commit 02f451fc77

View File

@@ -1,16 +1,16 @@
To use LevelDB, follow these steps:
1) At the top of the directory tree, type:
make -C src/cpp/leveldb libleveldb.a
2) In the SConstruct file, change
1) In the SConstruct file, change
LevelDB = bool(0)
to
LevelDB = bool(1)
3) Compile with 'scons'.
2) Compile with 'scons'.
There is no import or export method, so your server will have to refetch
all nodes. For simplicity, we recommend clearing your entire 'db' directory.
LevelDB will store the hash nodes in a 'db/hashnode' directory.
3) If you have no databases you care about, remove them. Otherwise, start
rippled with '--import' to import your existing hashnode database into
LevelDB. After you import the hashnode database, either delete (or move) the
'hashnode.db', 'hashnode.db-shm' and 'hashnode.db-wal' files from your
database directory. Do not touch the LevelDB files in the 'hashnode'
directory.