Fixed IOTA API Builder
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'