sweep: add new interface method Immediate

This prepares the following commit where we now let the fee bumpr
decides whether to broadcast immediately or not.
This commit is contained in:
yyforyongyu committed 2024-12-20 17:53:59 +08:00
1 parent 5f64280df4
commit d0c7fd8aac
5 files changed
+36

No files matched your search

+7
View File
@@ -268,6 +268,13 @@ func (m *MockInputSet) StartingFeeRate() fn.Option[chainfee.SatPerKWeight] {
return args.Get(0).(fn.Option[chainfee.SatPerKWeight])
}
// Immediate returns whether the inputs should be swept immediately.
func (m *MockInputSet) Immediate() bool {
args := m.Called()
return args.Bool(0)
}
// MockBumper is a mock implementation of the interface Bumper.
type MockBumper struct {
mock.Mock