I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 05a290cd authored by zzz's avatar zzz
Browse files

more caching

parent ea29c961
No related branches found
No related tags found
No related merge requests found
...@@ -266,10 +266,8 @@ public class LeaseSet extends DatabaseEntry { ...@@ -266,10 +266,8 @@ public class LeaseSet extends DatabaseEntry {
public void readBytes(InputStream in) throws DataFormatException, IOException { public void readBytes(InputStream in) throws DataFormatException, IOException {
_destination = new Destination(); _destination = new Destination();
_destination.readBytes(in); _destination.readBytes(in);
_encryptionKey = new PublicKey(); _encryptionKey = PublicKey.create(in);
_encryptionKey.readBytes(in); _signingKey = SigningPublicKey.create(in);
_signingKey = new SigningPublicKey();
_signingKey.readBytes(in);
int numLeases = (int) DataHelper.readLong(in, 1); int numLeases = (int) DataHelper.readLong(in, 1);
if (numLeases > MAX_LEASES) if (numLeases > MAX_LEASES)
throw new DataFormatException("Too many leases - max is " + MAX_LEASES); throw new DataFormatException("Too many leases - max is " + MAX_LEASES);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment