contractcourt: make sure sweep happens immediately on startup
This commit makes sure the time-sensitive outputs are swept immediately during startup.
This commit is contained in:
14 files changed
+54
-29
No files matched your search
@@ -184,7 +184,9 @@ func (c *commitSweepResolver) getCommitTxConfHeight() (uint32, error) {
|
||||
// returned.
|
||||
//
|
||||
// NOTE: This function MUST be run as a goroutine.
|
||||
func (c *commitSweepResolver) Resolve() (ContractResolver, error) {
|
||||
//
|
||||
//nolint:funlen
|
||||
func (c *commitSweepResolver) Resolve(_ bool) (ContractResolver, error) {
|
||||
// If we're already resolved, then we can exit early.
|
||||
if c.resolved {
|
||||
return nil, nil
|
||||
|
||||
Reference in new issue
Block a user