From 208b3fa6fea73410dff10197e7bd0aa179c30792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Thu, 27 May 2021 14:47:06 -0400 Subject: [PATCH] SignedValue: add owner --- include/opendht/default_types.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/opendht/default_types.h b/include/opendht/default_types.h index f7f5b412..f6469d8d 100644 --- a/include/opendht/default_types.h +++ b/include/opendht/default_types.h @@ -66,8 +66,10 @@ private: public: virtual void unpackValue(const Value& v) override { - if (v.owner) + if (v.owner) { + owner = v.owner; from = v.owner->getId(); + } BaseClass::unpackValue(v); } @@ -75,6 +77,7 @@ public: return [](const Value& v){ return v.isSigned(); }; } + Sp<const crypto::PublicKey> owner; dht::InfoHash from; }; -- GitLab