github.com/datachainlab/burrow@v0.25.0/execution/contexts/blockchain.go (about)

     1  package contexts
     2  
     3  import "time"
     4  
     5  // Execution's sufficient view of blockchain
     6  type Blockchain interface {
     7  	BlockHash(height uint64) []byte
     8  	LastBlockTime() time.Time
     9  	BlockchainHeight
    10  }
    11  
    12  type BlockchainHeight interface {
    13  	LastBlockHeight() uint64
    14  }