utxonursery: use StaticFeeEstimator instead of mock in test
This commit is contained in:
parent
3c1260941f
commit
4cc255676b
@ -436,7 +436,7 @@ func createNurseryTestContext(t *testing.T,
|
||||
GenSweepScript: func() ([]byte, error) {
|
||||
return []byte{}, nil
|
||||
},
|
||||
Estimator: &mockFeeEstimator{},
|
||||
Estimator: &lnwallet.StaticFeeEstimator{},
|
||||
Signer: &nurseryMockSigner{},
|
||||
})
|
||||
|
||||
@ -1011,21 +1011,6 @@ func (i *nurseryStoreInterceptor) RemoveChannel(chanPoint *wire.OutPoint) error
|
||||
return i.ns.RemoveChannel(chanPoint)
|
||||
}
|
||||
|
||||
type mockFeeEstimator struct{}
|
||||
|
||||
func (m *mockFeeEstimator) EstimateFeePerKW(
|
||||
numBlocks uint32) (lnwallet.SatPerKWeight, error) {
|
||||
|
||||
return lnwallet.SatPerKWeight(10000), nil
|
||||
}
|
||||
|
||||
func (m *mockFeeEstimator) Start() error {
|
||||
return nil
|
||||
}
|
||||
func (m *mockFeeEstimator) Stop() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
type nurseryMockSigner struct {
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user