diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-01 14:29:35 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-01 14:29:35 +0000 |
| commit | c96f9b0255dc8b62055a693a24bfdc8e1b6e1b90 (patch) | |
| tree | db0837e641dba7f4f9350d9cda92ad4183a902ed /tests/unit_tests/serialization.cpp | |
| parent | bef51e677e4338291b03eb32a34731c445678be0 (diff) | |
| download | monzero-core-c96f9b0255dc8b62055a693a24bfdc8e1b6e1b90.tar.gz monzero-core-c96f9b0255dc8b62055a693a24bfdc8e1b6e1b90.tar.xz monzero-core-c96f9b0255dc8b62055a693a24bfdc8e1b6e1b90.zip | |
db_lmdb: guard against going out of sync on unexpected db results
m_num_outputs keeps track of the number of outputs, which should
be the same as the size of both the output_txs and output_amounts
databases. If one goes out of sync, we need to throw to abort
whatever it is we were doing.
Diffstat (limited to 'tests/unit_tests/serialization.cpp')
0 files changed, 0 insertions, 0 deletions
