You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/testdata/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,10 @@ Contains Bitcoin block data as dumped by Bitcoin Core after syncing up to a smal
6
6
This data can be generated roughly as follows:
7
7
1. Start bitcoind on the desired network
8
8
1. Sync a small number of initial blocks, then kill the daemon
9
-
1. Prune LevelDB
10
-
1. Remove non-block entries (the key doesn't begin with `b'b'`)
11
-
1.[Copy entries over](https://github.com/wbolster/plyvel/issues/153#issuecomment-1669387180) into a new database, this results in a dramatic serialization size decrease
9
+
1. Copy the `blocks` content over to the `testdata` directory
10
+
1. Prune LevelDB:
11
+
1. Set the correct API endpoint, max block height and path to the local DB in `clean_leveldb.py`
12
+
1. Run `python clean_leveldb.py` which will create a pruned DB, removing all superfluous data
0 commit comments