aboutsummaryrefslogtreecommitdiffstats
path: root/core/agreement.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/agreement.go')
-rw-r--r--core/agreement.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/agreement.go b/core/agreement.go
index c17c59f..c1f514d 100644
--- a/core/agreement.go
+++ b/core/agreement.go
@@ -466,6 +466,12 @@ func (a *agreement) done() <-chan struct{} {
return ch
}
+func (a *agreement) confirmed() bool {
+ a.lock.RLock()
+ defer a.lock.RUnlock()
+ return a.hasOutput
+}
+
// processBlock is the entry point for processing Block.
func (a *agreement) processBlock(block *types.Block) error {
a.lock.Lock()