contractcourt: process channel close event on new beat

This commit is contained in:
yyforyongyu committed 2024-12-20 17:54:07 +08:00
1 parent c5b3033427
commit a6d3a0fa99
3 files changed
+86 -5

No files matched your search

+9
View File
@@ -249,6 +249,15 @@ func (a ArbitratorState) String() string {
}
}
// IsContractClosed returns a bool to indicate whether the closing/breaching tx
// has been confirmed onchain. If the state is StateContractClosed,
// StateWaitingFullResolution, or StateFullyResolved, it means the contract has
// been closed and all related contracts have been launched.
func (a ArbitratorState) IsContractClosed() bool {
return a == StateContractClosed || a == StateWaitingFullResolution ||
a == StateFullyResolved
}
// resolverType is an enum that enumerates the various types of resolvers. When
// writing resolvers to disk, we prepend this to the raw bytes stored. This
// allows us to properly decode the resolver into the proper type.