OSDN Git Service

fix_ended_instance (#2111)
[bytom/bytom.git] / contract / infrastructure.go
index e86f210..bb78e93 100644 (file)
@@ -16,6 +16,7 @@ func NewInfrastructure(chain ChainService, repository Repository) *Infrastructur
 
 type ChainService interface {
        BestChain() (uint64, bc.Hash)
+       FinalizedHeight() uint64
        GetBlockByHash(*bc.Hash) (*types.Block, error)
        GetBlockByHeight(uint64) (*types.Block, error)
        BlockWaiter(height uint64) <-chan struct{}