mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-06-07 06:32:47 -04:00
ignore peers if address is null
This commit is contained in:
parent
d1d963052f
commit
1ef19722c9
2 changed files with 9 additions and 5 deletions
13
doc/build.md
13
doc/build.md
|
@ -22,8 +22,7 @@ When the build completes, you will find an executable jar: `gui/target/shaded.ja
|
||||||
To run it use:
|
To run it use:
|
||||||
$ java -jar gui/target/shaded.jar
|
$ java -jar gui/target/shaded.jar
|
||||||
|
|
||||||
To build the binary needs a bit more preparation as we use [UpdateFX](https://github.com/vinumeris/updatefx) for automatic updates.
|
To build the binary check out the build scripts under the package directory.
|
||||||
You can find more information in the build scripts under package.
|
|
||||||
|
|
||||||
Prerequisites
|
Prerequisites
|
||||||
-------------
|
-------------
|
||||||
|
@ -66,10 +65,14 @@ When the build completes, you will find an executable jar: `gui/target/shaded.ja
|
||||||
To run it use:
|
To run it use:
|
||||||
|
|
||||||
$ java -jar gui/target/shaded.jar
|
$ java -jar gui/target/shaded.jar
|
||||||
|
|
||||||
|
Please not that testnet is the default bitcoin network. Mainnet is disabled at that stage of development and will be activated as soon there is more testing done.
|
||||||
|
|
||||||
|
### 4. Development mode
|
||||||
|
|
||||||
|
Please check out our wiki for more information about [testing](https://github.com/bitsquare/bitsquare/wiki/Guide-for-testing-Bitsquare)
|
||||||
|
and how to use [regtest](https://github.com/bitsquare/bitsquare/wiki/How-to-use-Bitsquare-with-regtest-%28advanced%29)
|
||||||
|
|
||||||
For developing the following program arguments are useful (regtest mode):
|
|
||||||
|
|
||||||
$ java -jar gui/target/shaded.jar --bitcoin.network=regtest --useLocalhost=true --node.port=2222 --devTest=true --app.name=Bitsquare-Regtest-Alice
|
|
||||||
|
|
||||||
Problems?
|
Problems?
|
||||||
---------
|
---------
|
||||||
|
|
|
@ -656,6 +656,7 @@ public class PeerGroup implements MessageListener, ConnectionListener {
|
||||||
public Set<ReportedPeer> getReportedPeers() {
|
public Set<ReportedPeer> getReportedPeers() {
|
||||||
Set<ReportedPeer> all = new HashSet<>(reportedPeers);
|
Set<ReportedPeer> all = new HashSet<>(reportedPeers);
|
||||||
Set<ReportedPeer> authenticated = authenticatedPeers.values().stream()
|
Set<ReportedPeer> authenticated = authenticatedPeers.values().stream()
|
||||||
|
.filter(e -> e.address != null)
|
||||||
.map(e -> new ReportedPeer(e.address, new Date()))
|
.map(e -> new ReportedPeer(e.address, new Date()))
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
all.addAll(authenticated);
|
all.addAll(authenticated);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue