Skip to content

Commit

Permalink
Last minute changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinten Van Opstal committed Jun 27, 2024
1 parent 136ac5e commit 68eee5b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ open class CoinCommunity constructor(
?: throw IllegalStateException("Most recent DAO block not found")
val peerPK: ArrayList<String> = ArrayList<String>()
val blockData = SWJoinBlockTransactionData(mostRecentWalletBlock.transaction).getData()
for (swParticipantPk in blockData.SW_BITCOIN_PKS) {
for (swParticipantPk in blockData.SW_TRUSTCHAIN_PKS) {
peerPK.add(swParticipantPk)
}
return peerPK
Expand All @@ -419,7 +419,8 @@ open class CoinCommunity constructor(
val higherPeers = ArrayList<Peer>()

for (p in this.getPeers()) {
if (peerPK.contains(p.publicKey.keyToBin().toHex()) && p.address.hashCode() > this.myPeer.address.hashCode()) {
if (peerPK.contains(p.publicKey.keyToBin().toHex()) &&
p.address.hashCode() > this.myPeer.address.hashCode()) {
higherPeers.add(p)
}
}
Expand Down

0 comments on commit 68eee5b

Please sign in to comment.