We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a425e commit 1d706bdCopy full SHA for 1d706bd
prdoc/pr_10950.prdoc
@@ -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