mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Avoid assert flushing to disk with trim_headers enabled
This commit is contained in:
parent
c87c8acabe
commit
d02efe889f
1 changed files with 3 additions and 3 deletions
|
|
@ -417,12 +417,12 @@ public:
|
|||
nVersion = ~CBlockHeader::DYNAFED_HF_MASK & nVersion;
|
||||
return is_dyna;
|
||||
} else {
|
||||
return !dynafed_params().IsNull();
|
||||
return is_dynafed_block();
|
||||
}
|
||||
}
|
||||
bool RemoveDynaFedMaskOnSerialize(bool for_read) const {
|
||||
assert(!for_read);
|
||||
return !dynafed_params().IsNull();
|
||||
return is_dynafed_block();
|
||||
}
|
||||
|
||||
SERIALIZE_METHODS(CDiskBlockIndex, obj)
|
||||
|
|
@ -445,7 +445,7 @@ public:
|
|||
READWRITE(obj.nVersion);
|
||||
} else {
|
||||
int32_t nVersion = obj.nVersion;
|
||||
if (!obj.dynafed_params().IsNull()) {
|
||||
if (obj.is_dynafed_block()) {
|
||||
nVersion |= CBlockHeader::DYNAFED_HF_MASK;
|
||||
}
|
||||
READWRITE(nVersion);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue