Changeset b4f331e6 for router


Ignore:
Timestamp:
May 31, 2019 1:17:30 PM (10 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8a4c469
Parents:
6722485
Message:

Router: Fix persistence of blinded privkey and timestamp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/BlindCache.java

    r6722485 rb4f331e6  
    381381        }
    382382        BlindData rv;
    383         // TODO pass privkey
    384383        if (ss[7].length() > 0) {
    385384            Destination dest = new Destination(ss[7]);
    386385            if (!spk.equals(dest.getSigningPublicKey()))
    387386                throw new DataFormatException("spk mismatch");
    388             rv = new BlindData(_context, dest, st2, secret);
     387            rv = new BlindData(_context, dest, st2, secret, auth, privkey);
    389388        } else {
    390             rv = new BlindData(_context, spk, st2, secret);
    391         }
     389            rv = new BlindData(_context, spk, st2, secret, auth, privkey);
     390        }
     391        rv.setDate(time);
    392392        return rv;
    393393    }
     
    403403        buf.append(bd.getBlindedSigType().getCode()).append(',');
    404404        buf.append(bd.getAuthType()).append(',');
    405         // timestamp todo
    406         buf.append('0').append(',');
     405        buf.append(bd.getDate()).append(',');
    407406        buf.append(spk.toBase64()).append(',');
    408407        String secret = bd.getSecret();
Note: See TracChangeset for help on using the changeset viewer.