Skip to content

Commit

Permalink
Switches IRI to UDP due to bugs in IRI
Browse files Browse the repository at this point in the history
  • Loading branch information
romansemko committed Dec 16, 2017
1 parent d817b62 commit 148c0a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.1.9] - 2017-12-16

### Changed
- Switched IRI to run in UDP mode due to TCP bugs in IRI. https://github.com/iotaledger/iri/issues/345

## [0.1.8] - 2017-12-16

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/node/iri.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class IRI extends Base {
* @returns {Promise<Peer[]>}
*/
addNeighbors (peers) {
const uris = peers.map((p) => p.getTCPURI());
const uris = peers.map((p) => p.getUDPURI());
return new Promise((resolve, reject) => {
this.api.addNeighbors(uris, (error, data) => {
if(error) {
Expand Down
2 changes: 1 addition & 1 deletion src/node/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ class Node extends Base {
}
});
if (toRemove.length) {
this.log('Disconnecting Nelson nodes that are missing in IRI:'.red, toRemove.map((p) => p.getTCPURI()));
this.log('Disconnecting Nelson nodes that are missing in IRI:'.red, toRemove.map((p) => p.getUDPURI()));
return this._removeNeighbors(toRemove);
}
return([]);
Expand Down

0 comments on commit 148c0a9

Please sign in to comment.