contractcourt: define StateCommitmentBroadcasted
This commit is contained in:
parent
3d0cb16677
commit
7bacdd65dc
@ -112,13 +112,19 @@ const (
|
|||||||
// so yet.
|
// so yet.
|
||||||
StateBroadcastCommit ArbitratorState = 1
|
StateBroadcastCommit ArbitratorState = 1
|
||||||
|
|
||||||
|
// StateCommitmentBroadcasted is a state that indicates that the
|
||||||
|
// attendant has broadcasted the commitment transaction, and is now
|
||||||
|
// waiting for it to confirm.
|
||||||
|
StateCommitmentBroadcasted ArbitratorState = 6
|
||||||
|
|
||||||
// StateContractClosed is a state that indicates the contract has
|
// StateContractClosed is a state that indicates the contract has
|
||||||
// already been "closed". At this point, we can now examine our active
|
// already been "closed", meaning the commitment is confirmed on chain.
|
||||||
// contracts, in order to create the proper resolver for each one.
|
// At this point, we can now examine our active contracts, in order to
|
||||||
|
// create the proper resolver for each one.
|
||||||
StateContractClosed ArbitratorState = 2
|
StateContractClosed ArbitratorState = 2
|
||||||
|
|
||||||
// StateWaitingFullResolution is a state that indicates that the
|
// StateWaitingFullResolution is a state that indicates that the
|
||||||
// commitment transaction has been broadcast, and the attendant is now
|
// commitment transaction has been confirmed, and the attendant is now
|
||||||
// waiting for all unresolved contracts to be fully resolved.
|
// waiting for all unresolved contracts to be fully resolved.
|
||||||
StateWaitingFullResolution ArbitratorState = 3
|
StateWaitingFullResolution ArbitratorState = 3
|
||||||
|
|
||||||
@ -142,6 +148,9 @@ func (a ArbitratorState) String() string {
|
|||||||
case StateBroadcastCommit:
|
case StateBroadcastCommit:
|
||||||
return "StateBroadcastCommit"
|
return "StateBroadcastCommit"
|
||||||
|
|
||||||
|
case StateCommitmentBroadcasted:
|
||||||
|
return "StateCommitmentBroadcasted"
|
||||||
|
|
||||||
case StateContractClosed:
|
case StateContractClosed:
|
||||||
return "StateContractClosed"
|
return "StateContractClosed"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user