eventstore: remove useless sanity checking since event fields are already typed.

This commit is contained in:
fiatjaf
2025-08-05 00:04:27 -03:00
parent 7e6a0eb614
commit 17c3d19a98
4 changed files with 0 additions and 23 deletions
-5
View File
@@ -53,11 +53,6 @@ func (b *MultiMmapManager) storeOn(
iltxns []*lmdb.Txn,
evt nostr.Event,
) (stored bool, err error) {
// sanity checking
if evt.CreatedAt > maxuint32 || evt.Kind > maxuint16 {
return false, fmt.Errorf("event with values out of expected boundaries")
}
// check if we already have this id
val, err := mmmtxn.Get(b.indexId, evt.ID[0:8])
if err == nil {