Skip to content

xeth: added a transact mu#1663

Merged
obscuren merged 1 commit into
ethereum:developfrom
obscuren:issue-1662
Aug 15, 2015
Merged

xeth: added a transact mu#1663
obscuren merged 1 commit into
ethereum:developfrom
obscuren:issue-1662

Conversation

@obscuren
Copy link
Copy Markdown
Contributor

Added a transact mutex. The transact mutex will fix an issue where
transactions were created with the same nonce resulting in some
transactions being dropped. This happened when two concurrent calls
would call the Transact method (which is OK) which would both call
GetNonce. While the managed is thread safe it does not help us in this
case.

Closes #1662

Added a transact mutex. The transact mutex will fix an issue where
transactions were created with the same nonce resulting in some
transactions being dropped. This happened when two concurrent calls
would call the `Transact` method (which is OK) which would both call
`GetNonce`. While the managed is thread safe it does not help us in this
case.
@robotally
Copy link
Copy Markdown

Vote Count Reviewers
👍 3 @fjl @frozeman @maran
👎 0
Reaction Users
😆 @tgerring

Updated: Sat Aug 15 20:38:08 UTC 2015

@obscuren obscuren added this to the 1.0.2 milestone Aug 14, 2015
@tgerring
Copy link
Copy Markdown
Contributor

Any anticipated impact on performance with this lock? I assume it should slow down when lots of successive transactions are being generated or generated in parallel

@frozeman
Copy link
Copy Markdown
Contributor

Would be also my concern, though i prefer not dropped transactions 👍

@maran
Copy link
Copy Markdown
Member

maran commented Aug 15, 2015

I would argue that the performance hit would be negligible as far as I understand it mutex locks happening in userland so no context switching is needed.

I think the better question is who would need to generate so many transactions all at once that this could actually be noticeable.

👍

@tgerring
Copy link
Copy Markdown
Contributor

I think the better question is who would need to generate so many transactions all at once that this could actually be noticeable.

Testnet spam? 😆

@obscuren
Copy link
Copy Markdown
Contributor Author

@tgerring yes, valid concern but I think it's alright. If people would like to spam faster than geth can generate nonces, lock/unlock and add transactions, people can pre-generate the transaction elsewhere and propagate them to the network using eth_sendRawTransaction

@fjl
Copy link
Copy Markdown
Contributor

fjl commented Aug 15, 2015

👍

obscuren added a commit that referenced this pull request Aug 15, 2015
@obscuren obscuren merged commit 59b28cf into ethereum:develop Aug 15, 2015
@obscuren obscuren removed the review label Aug 15, 2015
@obscuren obscuren deleted the issue-1662 branch August 15, 2015 21:55
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Jun 21, 2023
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Sep 4, 2025
* chore: bump alpine image in release dockerfile (ethereum#1661)

* go mod tidy & comment e2e-test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants