func (a *ActionStreamGenerator) FinalizeBlockHash(blockHash chainhash.Hash, slot uint64) {
	lastEpochSlot := slot - (slot % a.config.EpochLength)

	if lastEpochSlot >= a.config.EpochLength {
		lastEpochSlot = lastEpochSlot - a.config.EpochLength
	}
	a.cb(&pb.ShardChainAction{
		FinalizeBlockAction: &pb.ActionFinalizeBlock{
			Hash: blockHash[:],
			Slot: lastEpochSlot,
		},
	})
}
// FinalizeBlockHash is called when a block is finalized.
FinalizeBlockHash is called when a block is finalized.
// FinalizeBlockHash is called when a block is finalized .
func (a *ActionStreamGenerator) FinalizeBlockHash(blockHash chainhash.Hash, slot uint64) {
	lastEpochSlot := slot - (slot % a.config.EpochLength)
	if lastEpochSlot >= a.config.EpochLength {
		lastEpochSlot = lastEpochSlot - a.config.EpochLength
	}
	a.cb(&pb.ShardChainAction{
		FinalizeBlockAction: &pb.ActionFinalizeBlock{
			Hash: blockHash[:],
			Slot: lastEpochSlot,
		},
	})
}
func ( a * ActionStreamGenerator ) FinalizeBlockHash ( blockHash chainhash . Hash , slot uint64 ) { lastEpochSlot := slot - ( slot % a . config . EpochLength ) if lastEpochSlot >= a . config . EpochLength { lastEpochSlot = lastEpochSlot - a . config . EpochLength } a . cb ( & pb . ShardChainAction { FinalizeBlockAction : & pb . ActionFinalizeBlock { Hash : blockHash [ : ] , Slot : lastEpochSlot , } , } ) }
FinalizeBlockHash is called when a block is finalized.
FinalizeBlockHash is called when a block is finalized .