Removes random energy P2P behaviour (#2986)

Energy P2P now try to evenly distribute over all outputs (to a certain
limit)
Fixes some NPE regarding the caches.

Closes #2969
This commit is contained in:
yueh
2017-07-29 15:38:29 +02:00
committed by GitHub
parent bcc4a732ed
commit b72fce97db
3 changed files with 135 additions and 71 deletions
@@ -67,4 +67,10 @@ public class TunnelCollection<T extends PartP2PTunnel> implements Iterable<T>
{
return this.clz;
}
public int size()
{
return this.tunnelSources == null ? 0 : this.tunnelSources.size();
}
}