RouterInfo: Optimize writing to avoid extra copy;

eliminate caching previously enabled for routers with high memory limits
Log tweak on sig verify fail
DataHelper.writeLong() to write(byte) conversion
DatabaseEntry: Remove deprecated, unused setRoutingKey()
This commit is contained in:
zzz
2015-12-13 16:48:04 +00:00
parent 2155347e4f
commit 3c5f9d0bc3
2 changed files with 40 additions and 41 deletions

View File

@ -98,6 +98,9 @@ public abstract class DatabaseEntry extends DataStructureImpl {
/**
* Returns the raw payload data, excluding the signature, to be signed by sign().
*
* Most callers should use writeBytes() or toByteArray() instead.
*
* FIXME RouterInfo throws DFE and LeaseSet returns null
* @return null on error ???????????????????????
*/
@ -122,13 +125,6 @@ public abstract class DatabaseEntry extends DataStructureImpl {
return _currentRoutingKey;
}
/**
* @deprecated unused
*/
public void setRoutingKey(Hash key) {
_currentRoutingKey = key;
}
/**
* @throws IllegalStateException if not in RouterContext
*/