mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Merge pull request #4886 from jmacxx/hotfix/v1.5.1
add logging of Tx hex
This commit is contained in:
commit
baa038aa39
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,7 @@ import bisq.common.UserThread;
|
|||
|
||||
import org.bitcoinj.core.PeerGroup;
|
||||
import org.bitcoinj.core.Transaction;
|
||||
import org.bitcoinj.core.Utils;
|
||||
import org.bitcoinj.wallet.Wallet;
|
||||
|
||||
import com.google.common.util.concurrent.FutureCallback;
|
||||
|
@ -90,6 +91,7 @@ public class TxBroadcaster {
|
|||
public static void broadcastTx(Wallet wallet, PeerGroup peerGroup, Transaction tx, Callback callback, int timeOut) {
|
||||
Timer timeoutTimer;
|
||||
final String txId = tx.getTxId().toString();
|
||||
log.info("Txid: {} hex: {}", txId, Utils.HEX.encode(tx.bitcoinSerialize()));
|
||||
if (!broadcastTimerMap.containsKey(txId)) {
|
||||
timeoutTimer = UserThread.runAfter(() -> {
|
||||
log.warn("Broadcast of tx {} not completed after {} sec.", txId, timeOut);
|
||||
|
|
Loading…
Add table
Reference in a new issue