contractcourt: pass in optional txns to lookups required for arb startup
To allow us to grab all of the information we need for our channel arbs in a more efficient way on startup, we add an optional tx to our lookup functions required on start.
This commit is contained in:
4 files changed
+76
-50
No files matched your search
@@ -51,7 +51,7 @@ type mockArbitratorLog struct {
|
||||
// interface.
|
||||
var _ ArbitratorLog = (*mockArbitratorLog)(nil)
|
||||
|
||||
func (b *mockArbitratorLog) CurrentState() (ArbitratorState, error) {
|
||||
func (b *mockArbitratorLog) CurrentState(kvdb.RTx) (ArbitratorState, error) {
|
||||
return b.state, nil
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ func (b *mockArbitratorLog) InsertConfirmedCommitSet(c *CommitSet) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (b *mockArbitratorLog) FetchConfirmedCommitSet() (*CommitSet, error) {
|
||||
func (b *mockArbitratorLog) FetchConfirmedCommitSet(kvdb.RTx) (*CommitSet, error) {
|
||||
return b.commitSet, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user