Ignore:
Timestamp:
Dec 2, 2010, 10:29:59 PM (11 years ago)
Author:
nolte
Message:

Versionnumber Start
(UPDATE)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/P2P/Storage/StorageHelper.cs

    r2152 r2155  
    6262        private static void UpdateLeafInDht(Leaf nodeToUpdate, BinaryWriter binaryWriter)
    6363        {
    64             //TODO: Versionnumber write
    65             //-----------------------------------------------------
    66             //binaryWriter.Write('V');
    67             //binaryWriter.Write(version);
    68             //-----------------------------------------------------
     64            binaryWriter.Write('V');
     65            binaryWriter.Write(version);
    6966            var buffer = nodeToUpdate.LastReservationDate.ToBinary();
    7067            binaryWriter.Write(buffer);
    71            
    72             //--------------------------------------------------------------------------------
    7368            binaryWriter.Write(nodeToUpdate.getClientIdentifier());
    74             //--------------------------------------------------------------------------------
    7569        }
    7670
     
    143137        private static void UpdateLeafFromDht(Leaf nodeToUpdate, BinaryReader binaryReader)
    144138        {
    145             //---------------------------------------------------------------------------------
    146             //TODO: Versionnumber read
    147             //CheckVersion(binaryReader);
    148             //----------------------------------------------------------------------------------           
    149                
     139            CheckVersion(binaryReader);
     140               
    150141            var date = DateTime.FromBinary(binaryReader.ReadInt64());
    151142            if (date > nodeToUpdate.LastReservationDate)
Note: See TracChangeset for help on using the changeset viewer.