From 1b58d120053eeeddcb0b56b849914b51c7572fea Mon Sep 17 00:00:00 2001 From: catbref Date: Thu, 16 May 2019 11:52:14 +0100 Subject: [PATCH] Fix peer data bug where lastConnected was swapped with lastAttempted. --- .../org/qora/repository/hsqldb/HSQLDBNetworkRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/qora/repository/hsqldb/HSQLDBNetworkRepository.java b/src/main/java/org/qora/repository/hsqldb/HSQLDBNetworkRepository.java index 7f718fb2..48738aef 100644 --- a/src/main/java/org/qora/repository/hsqldb/HSQLDBNetworkRepository.java +++ b/src/main/java/org/qora/repository/hsqldb/HSQLDBNetworkRepository.java @@ -46,7 +46,7 @@ public class HSQLDBNetworkRepository implements NetworkRepository { Timestamp lastMisbehavedTimestamp = resultSet.getTimestamp(5, Calendar.getInstance(HSQLDBRepository.UTC)); Long lastMisbehaved = resultSet.wasNull() ? null : lastMisbehavedTimestamp.getTime(); - peers.add(new PeerData(peerAddress, lastConnected, lastAttempted, lastHeight, lastMisbehaved)); + peers.add(new PeerData(peerAddress, lastAttempted, lastConnected, lastHeight, lastMisbehaved)); } while (resultSet.next()); return peers;