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:
yyforyongyu committed 2024-04-19 21:33:39 +08:00
1 parent 7abefa7760
commit 49cfb91af1
14 files changed
+54 -29

No files matched your search

+3 -1
View File
@@ -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