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
We introduce a new kind of integraiton test where
the application performs the full flow starting from
serialized blockchain data, instead of inlined bytes
as was done in a test we replace here.
To power this, we source in some testdata that was generated
by syncing a node up to some small height. For more details,
see the new README file.
let script = hex::decode("04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73").unwrap();
let script = hex::decode("4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac").unwrap();
let script = hex::decode("04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73").unwrap();
let script = hex::decode("4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac").unwrap();
Contains Bitcoin block data as dumped by Bitcoin Core after syncing up to a small height.
5
+
6
+
This data can be generated roughly as follows:
7
+
1. Start bitcoind on the desired network
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
0 commit comments