A Transparent and Verifiable Way to Sync the AT Protocol's PLC Directory

did count in mempool stats

+4 -1
+4 -1
bundle/mempool.go
··· 383 383 stats["first_time"] = m.operations[0].CreatedAt 384 384 stats["last_time"] = m.operations[len(m.operations)-1].CreatedAt 385 385 386 - // Calculate size 386 + // Calculate size and unique DIDs 387 387 totalSize := 0 388 + didSet := make(map[string]bool) 388 389 for _, op := range m.operations { 389 390 totalSize += len(op.RawJSON) 391 + didSet[op.DID] = true 390 392 } 391 393 stats["size_bytes"] = totalSize 394 + stats["did_count"] = len(didSet) // ← ADDED 392 395 } 393 396 394 397 return stats