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

use the host's block height when setting an expiry on EA withdrawal messages #912

Merged
merged 6 commits into from
Feb 5, 2024

Conversation

peterjan
Copy link
Member

@peterjan peterjan commented Jan 22, 2024

This PR uses the host's block height to set the expiry on the withdrawal message. Nate noticed a renter spamming the host with expired withdrawal messages, I think this was caused by a bug in refreshUploaders so I added a unit test for it in this PR.

@peterjan peterjan self-assigned this Jan 22, 2024
@peterjan peterjan marked this pull request as ready for review January 22, 2024 09:47
ChrisSchinnerl
ChrisSchinnerl previously approved these changes Jan 22, 2024
worker/mocks_test.go Outdated Show resolved Hide resolved
worker/upload.go Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl dismissed their stale review January 22, 2024 13:00

hit the wrong button^^

@peterjan peterjan changed the title add TestRefreshUploaders, increasing the overal coverage of the upload code in the worker use the host's block height when setting an expiry on EA withdrawal messages Jan 23, 2024
@ChrisSchinnerl ChrisSchinnerl merged commit 4f8e584 into dev Feb 5, 2024
6 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the pj/test-refresh-pricetables branch February 5, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants