func (s *Store) GetEventPayload(id hash.Event) *inter.EventPayload {
	if ev, ok := s.cache.Events.Get(id); ok {
		return ev.(*inter.EventPayload)
	}
	key := id.Bytes()
	w, _ := s.rlp.Get(s.table.Events, key, &inter.EventPayload{}).(*inter.EventPayload)
	if w != nil {
		fixEventTxHashes(w)
	}
	if w != nil {
		s.cache.Events.Add(id, w, uint(w.Size()))
		eh := w.Event
		s.cache.EventsHeaders.Add(id, &eh, nominalSize)
	}
	return w
}
GetEventPayload returns stored event.
package gossip
import (
	"bytes"
	"github.com/Fantom-foundation/lachesis-base/hash"
	"github.com/Fantom-foundation/lachesis-base/inter/idx"
	"github.com/ethereum/go-ethereum/ethdb"
	"github.com/ethereum/go-ethereum/rlp"
	"github.com/Fantom-foundation/go-opera/inter"
)
func (s *Store) DelEvent(id hash.Event) {
	key := id.Bytes()
	err := s.table.Events.Delete(key)
	if err != nil {
		s.Log.Crit("Failed to delete key", "err", err)
	}
	s.cache.Events.Remove(id)
	s.cache.EventsHeaders.Remove(id)
}
func (s *Store) SetEvent(e *inter.EventPayload) {
	key := e.ID().Bytes()
	s.rlp.Set(s.table.Events, key, e)
	s.cache.Events.Add(e.ID(), e, uint(e.Size()))
	eh := e.Event
	s.cache.EventsHeaders.Add(e.ID(), &eh, nominalSize)
}