Skip to content

feat: add transaction lock for blockchain requests#652

Merged
Nitya-003 merged 1 commit into
Nitya-003:mainfrom
Vidheendu:feat/transaction-lock
Jul 6, 2026
Merged

feat: add transaction lock for blockchain requests#652
Nitya-003 merged 1 commit into
Nitya-003:mainfrom
Vidheendu:feat/transaction-lock

Conversation

@Vidheendu

Copy link
Copy Markdown
Contributor

📌 Overview

Implemented a transaction locking mechanism to prevent duplicate blockchain requests while a transaction is already in progress.

Features

  • Locks the transaction immediately after the first click.
  • Prevents duplicate blockchain submissions.
  • Ignores repeated clicks until the transaction completes.
  • Automatically unlocks after success or failure.
  • Displays a notification when users attempt another transaction while one is already running.

🛠️ Type of Change

  • ⛓️ Smart Contract
  • 💻 Frontend
  • ⚙️ Backend
  • 📄 Documentation
  • 🧪 Testing

🔗 Related Issue

Closes #597


🧪 Testing & Verification

  • Frontend verified locally.
  • Production build passed (npm run build).
  • Duplicate transaction attempts are prevented while a transaction is in progress.

📸 Screenshots / Demos

(Add screenshots here.)


✅ PR Checklist

  • My code follows the project's style guidelines.
  • My changes generate no new warnings.
  • Documentation update not required.

💬 Additional Notes

Implemented a dedicated transaction lock that guards the blockchain transaction handler and releases the lock after the transaction succeeds or fails, reducing the risk of accidental duplicate submissions.

@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

@Vidheendu is attempting to deploy a commit to the Nitya Gosain's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Nitya-003 Nitya-003 added quality:clean *1.2 for contributor +5 pts for mentor type:feature enhancement New feature or request gssoc:approved gssoc'26 approved level:beginner 20 pts for contributor 10 pts for mentor labels Jul 6, 2026
@Nitya-003 Nitya-003 merged commit e3aa9d6 into Nitya-003:main Jul 6, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request gssoc:approved gssoc'26 approved level:beginner 20 pts for contributor 10 pts for mentor quality:clean *1.2 for contributor +5 pts for mentor type:feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent Multiple Blockchain Transactions Using Transaction Lock

2 participants