diff --git a/core/src/main/java/bisq/core/dao/governance/blindvote/BlindVoteConsensus.java b/core/src/main/java/bisq/core/dao/governance/blindvote/BlindVoteConsensus.java index 394b9b0863..1841ff2cb5 100644 --- a/core/src/main/java/bisq/core/dao/governance/blindvote/BlindVoteConsensus.java +++ b/core/src/main/java/bisq/core/dao/governance/blindvote/BlindVoteConsensus.java @@ -95,8 +95,8 @@ public class BlindVoteConsensus { return Encryption.encrypt(bytes, secretKey); } - public static byte[] getHashOfEncryptedProposalList(byte[] encryptedProposalList) { - return Hash.getSha256Ripemd160hash(encryptedProposalList); + public static byte[] getHashOfEncryptedVotes(byte[] encryptedVotes) { + return Hash.getSha256Ripemd160hash(encryptedVotes); } public static byte[] getOpReturnData(byte[] hash) throws IOException { diff --git a/core/src/main/java/bisq/core/dao/governance/blindvote/MyBlindVoteListService.java b/core/src/main/java/bisq/core/dao/governance/blindvote/MyBlindVoteListService.java index bf25bac350..a259037c76 100644 --- a/core/src/main/java/bisq/core/dao/governance/blindvote/MyBlindVoteListService.java +++ b/core/src/main/java/bisq/core/dao/governance/blindvote/MyBlindVoteListService.java @@ -261,7 +261,7 @@ public class MyBlindVoteListService implements PersistedDataHost, DaoStateListen private byte[] getOpReturnData(byte[] encryptedVotes) throws IOException { // We cannot use hash of whole blindVote data because we create the merit signature with the blindVoteTxId // So we use the encryptedVotes for the hash only. - final byte[] hash = BlindVoteConsensus.getHashOfEncryptedProposalList(encryptedVotes); + final byte[] hash = BlindVoteConsensus.getHashOfEncryptedVotes(encryptedVotes); log.info("Sha256Ripemd160 hash of encryptedVotes: " + Utilities.bytesAsHexString(hash)); return BlindVoteConsensus.getOpReturnData(hash); }