Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files Browse the repository at this point in the history
MozaTech committed Jun 27, 2024
2 parents 986b75f + 68eee5b commit 06b5fcc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
@@ -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)
}
}

0 comments on commit 06b5fcc

Please sign in to comment.