diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2020-02-16 20:18:32 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2020-02-16 20:18:32 +0100 |
commit | 0e9e9c4d233a331e10dfb2db889fe437d0911ba2 (patch) | |
tree | 450b78801436d007efd5eaaf2b52f3e7dfe95a96 /src/identity.cpp | |
parent | 69e4c826a34eb84c36bb07338a9a292a520f5970 (diff) |
Peer list in public API
Diffstat (limited to 'src/identity.cpp')
-rw-r--r-- | src/identity.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/identity.cpp b/src/identity.cpp index 00abf0b..61059ab 100644 --- a/src/identity.cpp +++ b/src/identity.cpp @@ -46,6 +46,13 @@ optional<Identity> Identity::owner() const return p->owner; } +const Identity & Identity::finalOwner() const +{ + if (p->owner) + return p->owner->finalOwner(); + return *this; +} + Stored<PublicKey> Identity::keyMessage() const { return p->keyMessage; |