multi: add reset closure to kvdb.Update
Similarly as with kvdb.View this commits adds a reset closure to the kvdb.Update call in order to be able to reset external state if the underlying db backend needs to retry the transaction.
This commit is contained in:
44 files changed
+208
-162
No files matched your search
@@ -924,7 +924,7 @@ func (b *boltArbitratorLog) WipeHistory() error {
|
||||
|
||||
// Finally, we'll delete the enclosing bucket itself.
|
||||
return tx.DeleteTopLevelBucket(b.scopeKey[:])
|
||||
})
|
||||
}, func() {})
|
||||
}
|
||||
|
||||
// checkpointContract is a private method that will be fed into
|
||||
@@ -951,7 +951,7 @@ func (b *boltArbitratorLog) checkpointContract(c ContractResolver,
|
||||
}
|
||||
|
||||
return nil
|
||||
})
|
||||
}, func() {})
|
||||
}
|
||||
|
||||
func encodeIncomingResolution(w io.Writer, i *lnwallet.IncomingHtlcResolution) error {
|
||||
|
||||
Reference in new issue
Block a user