Skip to content

Commit

Permalink
lntest: increase node start timeout for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Nov 9, 2024
1 parent ecd3730 commit efdcc7e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lntest/wait/timeouts_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,21 @@ const (

// NodeStartTimeout is the timeout value when waiting for a node to
// become fully started.
NodeStartTimeout = time.Minute * 2
//
// TODO(yy): There is an optimization we can do to increase the time it
// takes to finish the initial wallet sync. Instead of finding the
// block birthday using binary search in btcwallet, we can instead
// search optimistically by looking at the chain tip minus X blocks to
// get the birthday block. This way in the test the node won't attempt
// to sync from the beginning of the chain, which is always the case
// due to how regtest blocks are mined.
// The other direction of optimization is to change the precision of
// the regtest block's median time. By consensus, we need to increase
// at least one second(?), this means in regtest when large amount of
// blocks are mined in a short time, the block time is actually in the
// future. We could instead allow the median time to increase by
// microseconds for itests.
NodeStartTimeout = time.Minute * 3

// SqliteBusyTimeout is the maximum time that a call to the sqlite db
// will wait for the connection to become available.
Expand Down

0 comments on commit efdcc7e

Please sign in to comment.