Skip to content

Commit 1d706bd

Browse files
Update from github-actions[bot] running command 'prdoc --audience runtime_dev --bump patch'
1 parent 34a425e commit 1d706bd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

prdoc/pr_10950.prdoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
title: 'fix(revive): handle transaction hash conflicts during re-org'
2+
doc:
3+
- audience: Runtime Dev
4+
description: "## Summary\n\nFixes a UNIQUE constraint violation when processing\
5+
\ blocks after a re-org:\n```\nUNIQUE constraint failed: transaction_hashes.transaction_hash\n\
6+
```\n\n## Problem\n\nWhen a blockchain re-org occurs:\n1. Block A contains transaction\
7+
\ TX1 \u2192 stored in `transaction_hashes`\n2. Server restarts (clearing the\
8+
\ in-memory `block_number_to_hashes` map)\n3. Re-org happens, Block B (different\
9+
\ hash) now contains the same TX1\n4. INSERT fails because TX1 already exists\
10+
\ with old block_hash"
11+
crates:
12+
- name: pallet-revive-eth-rpc
13+
bump: patch

0 commit comments

Comments
 (0)