Ignore:
Timestamp:
Jun 15, 2010, 5:38:07 PM (11 years ago)
Author:
Paul Lelgemann
Message:

o Work on the distributed KeySearcher

File:
1 edited

Legend:

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

    r1634 r1647  
    9999        private static void UpdateNodeFromDht(Node nodeToUpdate, BinaryReader binaryReader)
    100100        {
    101             nodeToUpdate.LeftChildFinished = binaryReader.ReadBoolean();
    102             nodeToUpdate.RightChildFinished = binaryReader.ReadBoolean();
     101            nodeToUpdate.LeftChildFinished = binaryReader.ReadBoolean() || nodeToUpdate.LeftChildFinished;
     102            nodeToUpdate.RightChildFinished = binaryReader.ReadBoolean() || nodeToUpdate.RightChildFinished;
    103103        }
    104104
    105105        private static void UpdateLeafFromDht(Leaf nodeToUpdate, BinaryReader binaryReader)
    106106        {
    107             long readInt64 = binaryReader.ReadInt64();
    108             var date = DateTime.FromBinary(readInt64);
    109             nodeToUpdate.LastReservationDate = date;
     107            var date = DateTime.FromBinary(binaryReader.ReadInt64());
     108            if (date > nodeToUpdate.LastReservationDate)
     109            {
     110                nodeToUpdate.LastReservationDate = date;
     111            }
    110112        }
    111113
Note: See TracChangeset for help on using the changeset viewer.