Commit graph

9 commits

Author SHA1 Message Date
Calin Culianu
4bb5eb0949 wip 2019-12-03 15:41:09 +02:00
Calin Culianu
4d1c7f91ea wip 2019-12-03 13:57:02 +02:00
Calin Culianu
dfaa36cc13
DB format change: added SerializeScalar/DeserializeScalar
This is to support writing raw ints directly to db keys / db values as a
space saving measure.  QDataStream, while platform neutral, adds its own
marker/size bytes to the serialization which we do not need always.

Our DB format is now endian and architecture-specific, but that's ok.
Users can resynch if they switch machine architectures.
2019-12-03 06:38:19 +02:00
Calin Culianu
eeb32a43ec Tweak 2019-12-01 01:20:37 +02:00
Calin Culianu
a7293a9939
Potential bug fixed: Added protection from connecting to wrong bitcoind
We now save the "chain" variable to the meta table.  We also panic if
the headers we are reading from bitcoind are behind what we have (todo:
handle this elegantly if there actually was a reorg?)
2019-11-30 01:33:27 +02:00
Calin Culianu
5842c44a79
Nits, refactorings + added shared HeaderVerifier that lives in Storage 2019-11-30 00:42:33 +02:00
Calin Culianu
b1f5eadb67 nit 2019-11-29 17:15:06 +02:00
Calin Culianu
68eebb00f9
Fixed up a few things, made header save resume from last save pt
And misc. other nits and refactorings in Storage.cpp
2019-11-29 17:11:33 +02:00
Calin Culianu
46b670d813 storage wip 2019-11-29 14:42:17 +02:00