func (l LayerID) Add(layers uint16) LayerID {
	return LayerID(uint64(l) + uint64(layers))
}
GetEpoch returns the epoch number of this LayerID.
func (l LayerID) GetEpoch(layersPerEpoch uint16) EpochID {
return EpochID(uint64(l) / uint64(layersPerEpoch))
}
Add returns the LayerID that's layers (the param passed into this method) after l (this LayerID).
package types
import (
	"bytes"
	"fmt"
	"sort"
	"github.com/libonomy/ed25519"
	"github.com/libonomy/libonomy-p2p/common/util"
	"github.com/libonomy/libonomy-p2p/log"
	"github.com/libonomy/libonomy-p2p/signing"
)
type BlockID Hash20
func (id BlockID) String() string {
	return id.AsHash32().ShortString()
}
func (id BlockID) Field() log.Field { return log.String("block_id", id.AsHash32().ShortString()) }
func (id BlockID) Compare(other BlockID) bool {
	return bytes.Compare(id.ToBytes(), other.ToBytes()) < 0
}
func (id BlockID) AsHash32() Hash32 {
	return Hash20(id).ToHash32()
}
type LayerID uint64