Ignore:
Timestamp:
Jun 18, 2012, 1:40:59 PM (12 years ago)
Author:
Michael Tänzer
Message:

Fix DHT: messages got lost if not communicating over a direct link.

Also:

  • Fix mem leak
  • Code clean up
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/messages/DHTMessage.h

    r6919 r10572  
    2020
    2121        const NodeID& getHashedKey() const {
    22                 return hash;
     22                return NodeID::sha1( key.getBuffer(), key.getLength() / 8 );
    2323        }
    2424
     
    5858
    5959private:
    60         NodeID hash;
    6160        uint16_t ttl;
    6261        bool replace;
Note: See TracChangeset for help on using the changeset viewer.