-
Notifications
You must be signed in to change notification settings - Fork 312
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
Adding Source Protocol to networks.json #754
Conversation
UPDATE: Ah! Think I already got the answer, saw that lodash's merge and mergeWith methods are being used! One question: Is it a deep merge like this example with the use of spread operators? Or will adding an |
Hey, so I think a few more tests have to be run and the gas issues have to be sorted out before actually merging this. Some manage to restake without actually having to fiddle with gas settings, but not certain if it's consistent. Is it okay to keep this PR open? Or you prefer to have this PR closed and reopened at a later time (if this still is a necessity)? |
@zenodeapp thanks for this! Chain Registry suggests the 'low' gas price is 0.05usource - does using that avoid the need to set the gasModifier? Main reason being it gets expensive quickly if the modifier is set too high, and I haven't had to adjust this for any other chains so far. |
So sorry, just seeing this. Let me setup my validator to use such settings and I'll report back if it works fine or fails too often. (Even mine fails every once in 3-5 days, but are chain issues that probably need to be sorted out). Bear with me! :) |
I already changed the value to 0.05usource, without modifier. I have this configured locally at the moment and set my restake frequency to 1hr. If it fails my healthchecks will alert me! Up till now manually auto-staking worked fine, but will need to test how often it fails. For those with a higher frequency rate it's no biggy if it fails every now and then, but for those who autostake less frequently it could become more of a problem. Perhaps upping the I'll keep ya posted :)! |
Okay, 1 day passed and so far I've had one fail happen out of ~24 successful ones. This is normal (well not really normal, but expected). It seems to cost 0.06 SOURCE per autostake now though versus 0.04 SOURCE, https://ping.pub/source/tx/CAC617AE1915994F2F5447D48E107E906D13852720F9C890AD1CCB8E3391058B (transaction before my change to 0.05usource) vs now: https://ping.pub/source/tx/16645FEE5DA03932CBA26232D0165313BA8C9A3CFDB9585EFF7F19593954058B This is no biggy though! If it's better to leave I'll report back in a couple days! Have a good day man. |
I also changed So the combi of Let me know what you think. If you agree, then I'll add the If you'd like to see the logs, tell me. At the moment I can't share it as I'm not behind a pc and this phone is giving me a hard time copying the logs in the Termux app :'). |
Here's the log for reference: restake-source.log |
Added If the way I've configured it is not exactly how you had it in mind, tell me. |
@zenodeapp The retries are only really required here because you're using public nodes, which can be unreliable for two reasons.
For this PR we should remove the retries option and leave that up to the user. I'll update the PR and merge so this is wrapped up, but raise an issue if you have any other problems. |
Got it! Learning something new every time :)! Thank you Tom. |
Hi!
Here's a request to add the Source protocol to the networks.json file. I made sure to only add the necessary values in order for autostaking (or transactions in general) to work; which are the
gasPrice
andgasModifier
.Have a great day!
PS: I didn't see any other network with the
gasModifier
value set, but I presume it should work since some have theautostake
object included.https://sourceprotocol.io
https://restake.app/source