From 0a630123bb9375582586c5f36996f702e5fc361e Mon Sep 17 00:00:00 2001 From: Lazar <12626340+Lazar955@users.noreply.github.com> Date: Wed, 30 Oct 2024 06:55:51 +0100 Subject: [PATCH] fix deps (#5) --- harness/manager.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/harness/manager.go b/harness/manager.go index b4a3497..c4cf97b 100644 --- a/harness/manager.go +++ b/harness/manager.go @@ -244,8 +244,6 @@ func cleanupDir(path string) { } func (tm *TestManager) AtomicFundSignSendStakingTx(stakingOutput *wire.TxOut) (*wire.MsgTx, *chainhash.Hash, error) { - tm.mu.Lock() - defer tm.mu.Unlock() // 1 sat/vB // = 1 sat/vB × 1000 vB/kvB // = 1000 sat/kvB × 1/100'000'000 ₿/sat @@ -264,9 +262,12 @@ func (tm *TestManager) AtomicFundSignSendStakingTx(stakingOutput *wire.TxOut) (* tx := wire.NewMsgTx(2) tx.AddTxOut(stakingOutput) + // todo(lazar): investigate if we can push this more, currently max ~50txs/block + lock := true rawTxResult, err := tm.TestRpcClient.FundRawTransaction(tx, btcjson.FundRawTransactionOpts{ FeeRate: &feeRate, ChangePosition: &pos, + LockUnspents: &lock, }, nil) if err != nil { return nil, nil, err