OSDN Git Service
(root)
/
bytom
/
bytom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix_ended_instance (#2111)
[bytom/bytom.git]
/
contract
/
infrastructure.go
diff --git
a/contract/infrastructure.go
b/contract/infrastructure.go
index
e86f210
..
bb78e93
100644
(file)
--- 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{}