Open yyforyongyu opened 1 month ago
The implementation here is pretty unglamorous: https://github.com/btcsuite/btcwallet/blob/6fe19a472a627b5f3a6ab2eda9ed7d8809d04f2e/wtxmgr/tx.go#L1184-L1204
Perhaps the culprit is that we'll create 100 distributed transactions for the 100 outpoints, instead of just 1 transaction?
Issue
SendCoins
takes much longer to run with postgres as the db backend, and this itest failure has been shown multiple times,Observations
Turns out that when using postgres, leasing outputs take much longer, which is called here when crafting the tx for
SendCoins
.Steps to reproduce
Running with
make itest icase=sign_psbt/fund_and_sign_psbt backend=btcd
,Running with
make itest icase=sign_psbt/fund_and_sign_psbt backend=bitcoind
,Running with
make itest icase=sign_psbt/fund_and_sign_psbt backend=bitcoind dbbackend=postgres
,Running with
make itest icase=sign_psbt/fund_and_sign_psbt backend=bitcoind dbbackend=postgres nativesql=true
,