+1
-1
config.yaml
+1
-1
config.yaml
+6
-2
internal/plc/scanner.go
+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