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

feat: tweak intervals to lower pressure on the node #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jansegre
Copy link
Member

@jansegre jansegre commented Dec 8, 2021

Honestly I'm not sure if we should merge this. I took these changes from the tx-mining-service in production on the testnet.

@jansegre jansegre requested a review from msbrogli as a code owner December 8, 2021 20:09
@jansegre jansegre self-assigned this Dec 8, 2021
@@ -40,7 +40,7 @@ class StratumProtocol(JSONRPCProtocol):
ESTIMATOR_LOOP_INTERVAL = 15 # in seconds, "frequency" that the function that updates the estimator will be called
ESTIMATOR_WINDOW_INTERVAL = 60 * 15 # in seconds, size of the window to use for estimating miner's hashrate
TARGET_JOB_TIME = 15 # in seconds, adjust difficulty so jobs take this long
JOB_UPDATE_INTERVAL = 2 # in seconds, to update the timestamp of the job
JOB_UPDATE_INTERVAL = 10 # in seconds, to update the timestamp of the job
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the interval to update the job? So we would wait 10s to start a job tx if the miner is with a block job?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants