forked from I2P_Developers/i2p.i2p
Blinding:
- Blinding only throws IAE - Remove context arg from encode() - Hook in new form args on /configkeyring - Show b33 on /configkeyring - Remove support for appended secret in b33 - Persist cache immediately when storing secret or privkey - Fix i2ptunnel for std. ls2 - Add auth/secret required flags to BlindData more to do
This commit is contained in:
@ -168,7 +168,19 @@ class BlindCache {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Persists immediately if secret or privkey is non-null
|
||||
*/
|
||||
public void addToCache(BlindData bd) {
|
||||
storeInCache(bd);
|
||||
if (bd.getSecret() != null || bd.getAuthPrivKey() != null)
|
||||
store();
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 0.9.41 from addToCache()
|
||||
*/
|
||||
private void storeInCache(BlindData bd) {
|
||||
_cache.put(bd.getUnblindedPubKey(), bd);
|
||||
_reverseCache.put(bd.getBlindedPubKey(), bd);
|
||||
Destination dest = bd.getDestination();
|
||||
@ -257,7 +269,7 @@ class BlindCache {
|
||||
if (line.startsWith("#"))
|
||||
continue;
|
||||
try {
|
||||
addToCache(fromPersistentString(line));
|
||||
storeInCache(fromPersistentString(line));
|
||||
count++;
|
||||
} catch (IllegalArgumentException iae) {
|
||||
if (log.shouldLog(Log.WARN))
|
||||
|
Reference in New Issue
Block a user