mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-04 13:55:23 -05:00
refactor: Use DataStream now that version/type are unused
This commit is contained in:
parent
f15f790618
commit
4240a082b8
1 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,7 @@ public:
|
||||||
|
|
||||||
template<typename V> bool GetValue(V& value) {
|
template<typename V> bool GetValue(V& value) {
|
||||||
try {
|
try {
|
||||||
CDataStream ssValue{GetValueImpl(), SER_DISK, CLIENT_VERSION};
|
DataStream ssValue{GetValueImpl()};
|
||||||
ssValue.Xor(dbwrapper_private::GetObfuscateKey(parent));
|
ssValue.Xor(dbwrapper_private::GetObfuscateKey(parent));
|
||||||
ssValue >> value;
|
ssValue >> value;
|
||||||
} catch (const std::exception&) {
|
} catch (const std::exception&) {
|
||||||
|
@ -229,7 +229,7 @@ public:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
CDataStream ssValue{MakeByteSpan(*strValue), SER_DISK, CLIENT_VERSION};
|
DataStream ssValue{MakeByteSpan(*strValue)};
|
||||||
ssValue.Xor(obfuscate_key);
|
ssValue.Xor(obfuscate_key);
|
||||||
ssValue >> value;
|
ssValue >> value;
|
||||||
} catch (const std::exception&) {
|
} catch (const std::exception&) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue