update

Changed files
+7 -3
internal
+1 -1
config.yaml
··· 4 4 5 5 plc: 6 6 directory_url: "https://plc.directory" 7 - scan_interval: "30s" 7 + scan_interval: "10s" 8 8 bundle_dir: "./plc_bundles" 9 9 use_cache: true 10 10
+6 -2
internal/plc/scanner.go
··· 264 264 mempoolOps := make([]storage.MempoolOperation, len(operations)) 265 265 266 266 for i, op := range operations { 267 - opJSON, _ := json.Marshal(op) 267 + // ✅ Store the original RawJSON directly 268 268 mempoolOps[i] = storage.MempoolOperation{ 269 269 DID: op.DID, 270 - Operation: string(opJSON), 270 + Operation: string(op.RawJSON), // ✅ Use RawJSON instead of Marshal 271 271 CID: op.CID, 272 272 CreatedAt: op.CreatedAt, 273 273 } ··· 322 322 323 323 var op PLCOperation 324 324 json.Unmarshal([]byte(mop.Operation), &op) 325 + 326 + // ✅ Restore RawJSON from database 327 + op.RawJSON = []byte(mop.Operation) 328 + 325 329 operations = append(operations, op) 326 330 mempoolIDs = append(mempoolIDs, mop.ID) 327 331