mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 15:22:39 +00:00
* RouterInfo: Add method to validate sig during read-in for speed
This commit is contained in:
1 parent
dc402acd4a
commit
fbd230f21e
2 files changed
+53
-9
No files matched your search
@@ -424,7 +424,7 @@ class PersistentDataStore extends TransientDataStore {
|
||||
fis = new FileInputStream(_routerFile);
|
||||
fis = new BufferedInputStream(fis);
|
||||
RouterInfo ri = new RouterInfo();
|
||||
ri.readBytes(fis);
|
||||
ri.readBytes(fis, true); // true = verify sig on read
|
||||
if (ri.getNetworkId() != Router.NETWORK_ID) {
|
||||
corrupt = true;
|
||||
if (_log.shouldLog(Log.ERROR))
|
||||
|
||||
Reference in new issue
Block a user