aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2019-10-18 12:09:48 -0700
committerJonas Schnelli <dev@jonasschnelli.ch>2019-10-23 09:27:35 +0200
commited2dc5e48abed1cde6ab98025dc8212917d47d21 (patch)
tree2c9522afbd33477ad31821b2f77f9786e4d7a7af /src/net.h
parentf342a5e61a73e1edf389b662d265d20cf26a1d51 (diff)
Add override/final modifiers to V1TransportDeserializer
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net.h b/src/net.h
index f6a04f5166..af73361c08 100644
--- a/src/net.h
+++ b/src/net.h
@@ -649,7 +649,7 @@ public:
virtual ~TransportDeserializer() {}
};
-class V1TransportDeserializer : public TransportDeserializer
+class V1TransportDeserializer final : public TransportDeserializer
{
private:
mutable CHash256 hasher;
@@ -682,23 +682,23 @@ public:
Reset();
}
- bool Complete() const
+ bool Complete() const override
{
if (!in_data)
return false;
return (hdr.nMessageSize == nDataPos);
}
- void SetVersion(int nVersionIn)
+ void SetVersion(int nVersionIn) override
{
hdrbuf.SetVersion(nVersionIn);
vRecv.SetVersion(nVersionIn);
}
- int Read(const char *pch, unsigned int nBytes) {
+ int Read(const char *pch, unsigned int nBytes) override {
int ret = in_data ? readData(pch, nBytes) : readHeader(pch, nBytes);
if (ret < 0) Reset();
return ret;
}
- CNetMessage GetMessage(const CMessageHeader::MessageStartChars& message_start, int64_t time);
+ CNetMessage GetMessage(const CMessageHeader::MessageStartChars& message_start, int64_t time) override;
};
/** Information about a peer */