Skip to content
Snippets Groups Projects
Commit 208b3fa6 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

SignedValue: add owner

parent d9ff95da
No related branches found
No related tags found
No related merge requests found
...@@ -66,8 +66,10 @@ private: ...@@ -66,8 +66,10 @@ private:
public: public:
virtual void unpackValue(const Value& v) override { virtual void unpackValue(const Value& v) override {
if (v.owner) if (v.owner) {
owner = v.owner;
from = v.owner->getId(); from = v.owner->getId();
}
BaseClass::unpackValue(v); BaseClass::unpackValue(v);
} }
...@@ -75,6 +77,7 @@ public: ...@@ -75,6 +77,7 @@ public:
return [](const Value& v){ return v.isSigned(); }; return [](const Value& v){ return v.isSigned(); };
} }
Sp<const crypto::PublicKey> owner;
dht::InfoHash from; dht::InfoHash from;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment