File tree 1 file changed +4
-14
lines changed
1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -21,27 +21,17 @@ CDomainEntryDB *pDomainEntryDB = NULL;
21
21
22
22
bool GetDomainEntry (const std::vector<unsigned char >& vchObjectPath, CDomainEntry& entry)
23
23
{
24
- if (!pDomainEntryDB || !pDomainEntryDB->ReadDomainEntry (vchObjectPath, entry)) {
24
+ if (!pDomainEntryDB || !pDomainEntryDB->ReadDomainEntry (vchObjectPath, entry))
25
25
return false ;
26
- }
27
-
28
- if (chainActive.Tip () && (unsigned int )chainActive.Tip ()->GetMedianTimePast () >= entry.nExpireTime ) {
29
- entry.SetNull ();
30
- return false ;
31
- }
26
+
32
27
return !entry.IsNull ();
33
28
}
34
29
35
30
bool GetDomainEntryPubKey (const std::vector<unsigned char >& vchPubKey, CDomainEntry& entry)
36
31
{
37
- if (!pDomainEntryDB || !pDomainEntryDB->ReadDomainEntryPubKey (vchPubKey, entry)) {
32
+ if (!pDomainEntryDB || !pDomainEntryDB->ReadDomainEntryPubKey (vchPubKey, entry))
38
33
return false ;
39
- }
40
-
41
- if ((unsigned int )chainActive.Tip ()->GetMedianTimePast () >= entry.nExpireTime ) {
42
- entry.SetNull ();
43
- return false ;
44
- }
34
+
45
35
return !entry.IsNull ();
46
36
}
47
37
You can’t perform that action at this time.
0 commit comments