Router: Add support for building tunnels through ECIES routers (proposals 152,156)

Preliminary, proposal not finalized, subject to change
Not yet compatibility tested with other implementations
Add peers to match requested length for explicitPeers
remove commented out code
log tweaks
This commit is contained in:
zzz
2020-10-03 14:05:22 +00:00
parent 9d566aea68
commit cead0b2fb8
17 changed files with 696 additions and 173 deletions

View File

@ -18,6 +18,7 @@ import net.i2p.data.i2np.BuildResponseRecord;
import net.i2p.data.i2np.EncryptedBuildRecord;
import net.i2p.data.i2np.TunnelBuildMessage;
import net.i2p.data.i2np.TunnelBuildReplyMessage;
import net.i2p.router.RouterContext;
import net.i2p.util.Log;
/**
@ -41,7 +42,7 @@ public class BuildMessageTestStandalone extends TestCase {
private long _replyTunnel;
public void testBuildMessage() {
I2PAppContext ctx = I2PAppContext.getGlobalContext();
RouterContext ctx = new RouterContext(null);
Log log = ctx.logManager().getLog(getClass());
List<Integer> order = pickOrder();