OSDN Git Service

keep last irreversible block on the main chain (#245)
[bytom/vapor.git] / test / mock / chain.go
index 0b93ce9..700891f 100644 (file)
@@ -37,6 +37,10 @@ func (c *Chain) BestBlockHeight() uint64 {
        return c.bestBlockHeader.Height
 }
 
+func (c *Chain) LastIrreversibleHeader() *types.BlockHeader {
+       return c.bestBlockHeader
+}
+
 func (c *Chain) CalcNextSeed(hash *bc.Hash) (*bc.Hash, error) {
        return &bc.Hash{V0: hash.V1, V1: hash.V2, V2: hash.V3, V3: hash.V0}, nil
 }