contractcourt: store anchor resolutions on disk

This commit is contained in:
carla committed 2020-07-07 19:49:53 +02:00
1 parent 0a01d5d17c
commit f5b20b7429
4 files changed
+98 -17

No files matched your search

+4 -2
View File
@@ -104,6 +104,7 @@ func (i *commitSweepResolverTestContext) waitForResult() {
type mockSweeper struct {
sweptInputs chan input.Input
updatedInputs chan wire.OutPoint
sweepTx *wire.MsgTx
sweepErr error
}
@@ -111,6 +112,7 @@ func newMockSweeper() *mockSweeper {
return &mockSweeper{
sweptInputs: make(chan input.Input),
updatedInputs: make(chan wire.OutPoint),
sweepTx: &wire.MsgTx{},
}
}
@@ -121,7 +123,7 @@ func (s *mockSweeper) SweepInput(input input.Input, params sweep.Params) (
result := make(chan sweep.Result, 1)
result <- sweep.Result{
Tx: &wire.MsgTx{},
Tx: s.sweepTx,
Err: s.sweepErr,
}
return result, nil
@@ -144,7 +146,7 @@ func (s *mockSweeper) UpdateParams(input wire.OutPoint,
result := make(chan sweep.Result, 1)
result <- sweep.Result{
Tx: &wire.MsgTx{},
Tx: s.sweepTx,
}
return result, nil
}