Fix peer data bug where lastConnected was swapped with lastAttempted.

This commit is contained in:
catbref 2019-05-16 11:52:14 +01:00
parent ad9b42dc5d
commit 1b58d12005

View File

@ -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;