diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-04-27 11:07:43 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-04-27 11:11:36 +0200 |
| commit | 6030625631c62b0ffab2ac545c8351fa59dca483 (patch) | |
| tree | 043659400e6561a4540c322ed1699f55aadcdea1 /src/protocol.cpp | |
| parent | chain: Add assertion in case of missing records in index db (diff) | |
| download | discoin-6030625631c62b0ffab2ac545c8351fa59dca483.tar.xz discoin-6030625631c62b0ffab2ac545c8351fa59dca483.zip | |
test: Add more thorough test for dbwrapper iterators
I made a silly mistake in a database wrapper where keys
were sorted by char instead of uint8_t. As x86 char is signed
the sorting for the block index database was messed up, resulting
in a segfault due to missing records.
Add a test to catch:
- Wrong sorting
- Seeking errors
- Iteration result not complete
Diffstat (limited to 'src/protocol.cpp')
0 files changed, 0 insertions, 0 deletions