Skip to content

Commit

Permalink
wallets: Remove dependency to Bisq 2 Hex Class
Browse files Browse the repository at this point in the history
We can't depend on Bisq 2's Hex class to be able to reuse the wallets library in Bisq 1.
  • Loading branch information
alvasw committed Sep 11, 2024
1 parent a3df1e6 commit 65a3ea6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

package bisq.wallets.bitcoind.zmq;

import bisq.common.encoding.Hex;
import bisq.wallets.bitcoind.rpc.BitcoindDaemon;
import bisq.wallets.bitcoind.rpc.responses.BitcoindDecodeRawTransactionResponse;
import com.google.common.io.BaseEncoding;

public class BitcoindRawTxProcessor implements ZmqRawTxProcessor {

Expand All @@ -33,7 +33,7 @@ public BitcoindRawTxProcessor(BitcoindDaemon daemon, ZmqListeners listeners) {

@Override
public void processRawTx(byte[] serializedTx, byte[] sequenceNumber) {
String txInHex = Hex.encode(serializedTx);
String txInHex = BaseEncoding.base16().lowerCase().encode(serializedTx);
BitcoindDecodeRawTransactionResponse.Result rawTransaction = daemon.decodeRawTransaction(txInHex).getResult();
listeners.fireTxOutputAddressesListeners(rawTransaction);
listeners.fireTxIdInputListeners(rawTransaction);
Expand Down

0 comments on commit 65a3ea6

Please sign in to comment.