Ignore:
Timestamp:
Jun 17, 2010, 5:11:02 PM (11 years ago)
Author:
Paul Lelgemann
Message:

+ CrypP2P: Return types of synchronous methods Store/Retrieve/Remove changed
o Work on the distributed KeySearcher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/P2P/Nodes/Leaf.cs

    r1651 r1665  
    33using System.Numerics;
    44using KeySearcher.Helper;
     5using KeySearcher.P2P.Exceptions;
    56
    67namespace KeySearcher.P2P.Nodes
     
    2627        }
    2728
    28         public override NodeBase CalculatableNode(bool useReservedNodes)
     29        public override Leaf CalculatableLeaf(bool useReservedNodes)
    2930        {
     31            if (IsCalculated())
     32            {
     33                throw new AlreadyCalculatedException();
     34            }
     35
    3036            return this;
    3137        }
     
    3642        }
    3743
     44        public override void Reset()
     45        {
     46        }
     47
    3848        public bool ReserveLeaf()
    3949        {
    4050            LastReservationDate = DateTime.UtcNow;
    41             return P2PHelper.UpdateInDht(this);
     51            return P2PHelper.UpdateInDht(this).IsSuccessful();
    4252        }
    4353
Note: See TracChangeset for help on using the changeset viewer.