utxonursery: use StaticFeeEstimator instead of mock in test

This commit is contained in:
Joost Jager 2018-10-30 17:29:00 +01:00
parent 3c1260941f
commit 4cc255676b
No known key found for this signature in database
GPG Key ID: AE6B0D042C8E38D9

@ -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 {
}