Commit 1541bcc
fix: CometBFT height deserialization and SQLite write contention
CometBFT returns block height as a JSON string (e.g. "6294") but
cometCommitResponse.Height was typed as int64, causing unmarshal
failures and HTTP 500 on all /v1/memory/submit calls. Fixed with
the json:",string" tag.
Also added a write mutex to SQLiteStore.RunInTx to serialize write
transactions at the Go level, preventing SQLITE_BUSY errors when
concurrent DEFERRED transactions both escalate to write locks.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent c4aa186 commit 1541bcc
3 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
2473 | 2474 | | |
2474 | 2475 | | |
2475 | 2476 | | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
2476 | 2482 | | |
2477 | 2483 | | |
2478 | 2484 | | |
| |||
0 commit comments