Skip to content

Commit

Permalink
Update src/addrdb.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
  • Loading branch information
sipa and hebasto committed Nov 30, 2020
1 parent 04e3733 commit 9355a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addrdb.cpp
Expand Up @@ -23,7 +23,7 @@ bool SerializeDB(Stream& stream, const Data& data)
{
// Write and commit header, data
try {
CHashWriter hasher(SER_DISK, stream.GetVersion());
CHashWriter hasher(stream.GetType(), stream.GetVersion());
stream << Params().MessageStart() << data;
hasher << Params().MessageStart() << data;
stream << hasher.GetHash();
Expand Down

0 comments on commit 9355a22

Please sign in to comment.