mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-27 21:27:44 +02:00
htlcswitch: init mockFeeEstimator in other LinkChannelConfigs
If the tests don't execute quick enough, the link will try to sample the network fee and cause a panic. This happens semi-regularly on travis.
This commit is contained in:
@@ -74,6 +74,13 @@ type mockFeeEstimator struct {
|
||||
quit chan struct{}
|
||||
}
|
||||
|
||||
func newMockFeeEstimator() *mockFeeEstimator {
|
||||
return &mockFeeEstimator{
|
||||
byteFeeIn: make(chan chainfee.SatPerKWeight),
|
||||
quit: make(chan struct{}),
|
||||
}
|
||||
}
|
||||
|
||||
func (m *mockFeeEstimator) EstimateFeePerKW(
|
||||
numBlocks uint32) (chainfee.SatPerKWeight, error) {
|
||||
|
||||
|
Reference in New Issue
Block a user