Commit graph

12 commits

Author SHA1 Message Date
Calin Culianu
409feb1994
Ok, fixed the utxoset bug
Turns out our custom HashX class was doing some funny things when a
HashX had a \0 byte.  Likely QByteArray isn't really intended to be
inherited from.  Rather than investigate what was going on -- I just
decided it's sufficient to do: using HashX = QByteArray and be done with
it.

Now our utxo set is working correctly.

We still need to figure out how to store everything.. but this is
progress.
2019-12-05 12:07:27 +02:00
Calin Culianu
bf5eebaa65 wip -- it's kinda broken still.. :( 2019-12-04 23:53:45 +02:00
Calin Culianu
0480633de8 massive refactorings 2019-12-04 20:02:14 +02:00
Calin Culianu
ea6a607642 wip 2019-12-04 16:54:40 +02:00
Calin Culianu
7f6d025be2 nit: made GetBlockHeaderSize() return int because that's more useful to us 2019-12-03 21:53:32 +02:00
Calin Culianu
48e5f116d8
More nits in Storage.cpp and other places 2019-12-03 19:09:38 +02:00
Calin Culianu
844fdf3d27
Tweaks: restrict prevouN and inputN to 16 bit uint
Tx's can't have more than 65535 inputs or outputs, so this is ok, and
should save a little bit of memory for block processing.
2019-12-03 07:20:32 +02:00
Calin Culianu
6b0fc4183a
nit 2019-12-02 19:03:46 +02:00
Calin Culianu
0556caf0f4 wip -- mostly works. task end has some spurious events that need removing but works well 2019-12-02 13:50:18 +02:00
Calin Culianu
4a68eaaeaa
nit 2019-12-02 10:00:22 +02:00
Calin Culianu
76d0505323
Nits, refactorings, and tweaks
Cleaned up the code for BlockProc and created the HashX class

Plus made some of the PreProcessedBlock fields be more type-safe (using
std::optional)
2019-12-02 01:29:24 +02:00
Calin Culianu
e9d3991ded
WIP - added PreProcessedBlock
The PreProcessedBlock is intended to be a somewhat munged/mogrified form
of a CBlock which is somewhat ready for a db insert.

This data will get passed onto the Controller thread which will set
everything up to commit the SH history, header, etc to the db.

Did some initial testing and it's pretty fast and also.. I think it's
correct (as in I'm collating the data correctly).

TODO: Some more testing.
2019-12-01 22:36:19 +02:00