Skip to content

Fixed IOTA API Builder

Juraci Paixão Kröhling requested to merge jpkrohling:JPK-FixBuilder into master

This PR is a small refactor of the IOTA builder, to get it effectively accept host, protocol and port overrides.

Without this change:

IotaAPI proxy = new IotaAPI.Builder().host("somewhere_over_the_rainbow").build();

yields:

09:50:54.540 [main] DEBUG jota.IotaAPICore - Jota-API Java proxy pointing to node url: 'http://localhost:14265'

With this change:

09:51:44.421 [main] DEBUG jota.IotaAPICore - Jota-API Java proxy pointing to node url: 'http://somewhere_over_the_rainbow:14265'

Merge request reports