lntest: make sure minRelayFeerate is reset

So every test starts with the default minRelayFeerate.
This commit is contained in:
yyforyongyu
2024-10-24 16:44:36 +08:00
parent 5a8026aba9
commit e7d0754615

View File

@@ -159,6 +159,7 @@ func (f *FeeService) SetMinRelayFeerate(fee chainfee.SatPerKVByte) {
func (f *FeeService) Reset() {
f.lock.Lock()
f.feeRateMap = make(map[uint32]uint32)
f.minRelayFeerate = chainfee.FeePerKwFloor.FeePerKVByte()
f.lock.Unlock()
// Initialize default fee estimate.