mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-26 23:04:39 +00:00
Fixed multiple key deletion.
This commit is contained in:
parent
d3e8507182
commit
ad5f391bc5
@ -2,7 +2,7 @@ package=libsodium
|
||||
$(package)_version=1.0.18
|
||||
$(package)_download_path=https://download.libsodium.org/libsodium/releases/
|
||||
$(package)_file_name=$(package)-$($(package)_version)-stable.tar.gz
|
||||
$(package)_sha256_hash=7673be93a53f6dcfebc03122063ca65a26e2eea723788d1b826abe6d5fcf3837
|
||||
$(package)_sha256_hash=f9f2114ef2460c80d97db07a3fe6fcd058cdb4ffb5ca84f4b4c61f81b2907289
|
||||
|
||||
define $(package)_set_vars
|
||||
$(package)_config_opts_mingw32+=CFLAGS="-Ofast -fomit-frame-pointer -march=pentium3 -mtune=westmere"
|
||||
|
@ -39,9 +39,11 @@ void
|
||||
CKevaTxUndo::apply(CCoinsViewCache& view) const
|
||||
{
|
||||
if (isNew) {
|
||||
view.DeleteKey(nameSpace, key);
|
||||
}
|
||||
else {
|
||||
CKevaData oldData;
|
||||
if (view.GetName(nameSpace, key, oldData)) {
|
||||
view.DeleteKey(nameSpace, key);
|
||||
}
|
||||
} else {
|
||||
view.SetKeyValue(nameSpace, key, oldData, true);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user