mirror of
https://github.com/vtnerd/monero-lws.git
synced 2025-04-06 21:57:29 +00:00
Fix spend tracking bug in db::storage
This commit is contained in:
parent
037c5386dc
commit
45b39b3bcf
1 changed files with 7 additions and 1 deletions
|
@ -219,7 +219,13 @@ namespace db
|
|||
right_bytes.remove_prefix(sizeof(crypto::hash));
|
||||
|
||||
static_assert(sizeof(crypto::key_image) == 32, "bad memcmp below");
|
||||
return compare_32bytes(left_bytes, right_bytes);
|
||||
diff = compare_32bytes(left_bytes, right_bytes);
|
||||
if (diff)
|
||||
return diff;
|
||||
|
||||
left_bytes.remove_prefix(sizeof(crypto::key_image));
|
||||
right_bytes.remove_prefix(sizeof(crypto::key_image));
|
||||
return less<output_id>(left_bytes, right_bytes);
|
||||
}
|
||||
|
||||
constexpr const lmdb::basic_table<unsigned, block_info> blocks{
|
||||
|
|
Loading…
Reference in a new issue