Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relay: persistent transaction management #77

Closed
drortirosh opened this issue Mar 24, 2019 · 2 comments · Fixed by #98
Closed

relay: persistent transaction management #77

drortirosh opened this issue Mar 24, 2019 · 2 comments · Fixed by #98
Labels
help wanted Community help needed relay Relay server (golang)
Milestone

Comments

@drortirosh
Copy link
Member

Relay should:

  • Save all sent (pending) transactions.
  • Remove transactions as they are mined.
  • When a relay process is started, check if there are pending transaction (more than X minutes)
  • re-send such pending transaction, with boosted gas price (e.g. eth.gasPrice*1.5)
    Rationale: if a transaction blocks the relay (even if it agreed for a given gas price), it blocks the relay from processing new transactions, so it's better to boost it, even if it's on its own expense.
@drortirosh drortirosh added relay Relay server (golang) MVP labels Mar 24, 2019
@drortirosh drortirosh added the help wanted Community help needed label Apr 14, 2019
@drortirosh
Copy link
Member Author

since we're already using geth sources (for abigen), this DB should probably use leveldb..

@drortirosh drortirosh added this to the MVP milestone Apr 14, 2019
@drortirosh drortirosh removed the MVP label Apr 14, 2019
@spalladino
Copy link
Collaborator

I've started working on this one, hope to have something ready by early next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Community help needed relay Relay server (golang)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants