X-Git-Url: http://git.osdn.net/view?p=bytom%2Fbytom.git;a=blobdiff_plain;f=contract%2Finfrastructure.go;fp=contract%2Finfrastructure.go;h=bb78e9384d7890acfc8d0a91f369b02c38d9d5a4;hp=e86f2107dba92a819795fdfab46bfeaebc4ea6b3;hb=f96a6103af6922fe036352b4f5df9ffd595e83ea;hpb=14165adab69b09af097cf37c43f01b096e0a8ad4 diff --git a/contract/infrastructure.go b/contract/infrastructure.go index e86f2107..bb78e938 100644 --- a/contract/infrastructure.go +++ b/contract/infrastructure.go @@ -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{}