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:
5 files changed
+36
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user