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
2024-04-03 02:34:32 +08:00
parent 7abefa7760
commit 49cfb91af1
14 changed files with 54 additions and 29 deletions

View File

@@ -43,7 +43,7 @@ type ContractResolver interface {
// resolution, then another resolve is returned.
//
// NOTE: This function MUST be run as a goroutine.
Resolve() (ContractResolver, error)
Resolve(immediate bool) (ContractResolver, error)
// SupplementState allows the user of a ContractResolver to supplement
// it with state required for the proper resolution of a contract.