Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Feb 26, 2024
1 parent 942a0cc commit ec53741
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wallet/mixing.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package wallet
import (
"context"
cryptorand "crypto/rand"
"time"

"decred.org/dcrwallet/v4/errors"
"decred.org/dcrwallet/v4/wallet/txrules"
Expand Down Expand Up @@ -174,8 +173,7 @@ func (w *mixingWallet) PublishTransaction(ctx context.Context, tx *wire.MsgTx) e

func (w *Wallet) dicemixExpiry(ctx context.Context) uint32 {
_, height := w.MainChainTip(ctx)
target := w.chainParams.TargetTimePerBlock
return uint32(height) + uint32(2*time.Hour/target)
return mixing.MaxExpiry(uint32(height), w.chainParams)
}

// addCoinJoinInput adds a wallet's controlled UTXO to the coinjoin
Expand Down

0 comments on commit ec53741

Please sign in to comment.