diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-22 18:06:46 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-08-22 18:06:46 -0700 |
| commit | 9a3c652a518c40050a0190b489af9ab11647b0b0 (patch) | |
| tree | 16a0f1d81fdc55d668e317d836684bdc2aea514a /node/Membership.cpp | |
| parent | 6db47de25e388da3be13e6b10771520e7acd962e (diff) | |
| download | infinitytier-9a3c652a518c40050a0190b489af9ab11647b0b0.tar.gz infinitytier-9a3c652a518c40050a0190b489af9ab11647b0b0.zip | |
Get rid of expiration in Capability and Tag and move this to NetworkConfig so it can be set network-wide and reset if needed. Also add NetworkConfig field for this and centralize checking of credential time validity.
Diffstat (limited to 'node/Membership.cpp')
| -rw-r--r-- | node/Membership.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Membership.cpp b/node/Membership.cpp index dbba7f0d..969032ff 100644 --- a/node/Membership.cpp +++ b/node/Membership.cpp @@ -86,7 +86,7 @@ int Membership::addCredential(const RuntimeEnvironment *RR,const CertificateOfMe if (_com == com) return 0; const int vr = com.verify(RR); - if ((vr == 0)&&(com.revision() > _com.revision())) + if ((vr == 0)&&(com.timestamp().first > _com.timestamp().first)) _com = com; return vr; } |
