mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-30 02:21:08 +02:00
chainntnfs/interface_test: lower mempool spend check timeout
In this commit, we lower the mempool spend check timeout to be twice as long as the trickle interval of the miner node, which will greatly improve the execution time of this specific test. We're able to do this now since we can specify custom trickle intervals for our test harnesses.
This commit is contained in:
@ -320,11 +320,7 @@ func testSpendNotification(miner *rpctest.Harness,
|
||||
// Make sure notifications are not yet sent. We launch a go routine for
|
||||
// all the spend clients, such that we can wait for them all in
|
||||
// parallel.
|
||||
//
|
||||
// Since bitcoind is at times very slow at notifying about txs in the
|
||||
// mempool, we use a quite large timeout of 10 seconds.
|
||||
// TODO(halseth): change this when mempool spends are removed.
|
||||
mempoolSpendTimeout := 10 * time.Second
|
||||
mempoolSpendTimeout := 2 * chainntnfs.TrickleInterval
|
||||
mempoolSpends := make(chan *chainntnfs.SpendDetail, numClients)
|
||||
for _, c := range spendClients {
|
||||
go func(client *chainntnfs.SpendEvent) {
|
||||
|
Reference in New Issue
Block a user