Skip to content

Commit

Permalink
fix deps (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 authored Oct 30, 2024
1 parent 5a7320f commit 0a63012
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions harness/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0a63012

Please sign in to comment.