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

Sia renterd overrided old consensus folder #1515

Closed
cmdntd opened this issue Sep 9, 2024 · 3 comments
Closed

Sia renterd overrided old consensus folder #1515

cmdntd opened this issue Sep 9, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@cmdntd
Copy link

cmdntd commented Sep 9, 2024

Current Behavior

I tried to save consensus folder to load renterd faster with backups.
But it overrided old consensus folder, and loads from beginning.

Expected Behavior

How could renterd read old consesus folder to make it faster at beginning?

Steps to Reproduce

  1. Old consensus, data, slab
  2. Run sia from docker with volume to old folder
  3. It deletes old files, and loads from beginning

Version

1ed897e

What operating system did the problem occur on (e.g. Ubuntu 22.04, macOS 12.0, Windows 11)?

docker:master

Autopilot Config

{ "contracts": { "set": "autopilot", "amount": 50, "allowance": "3808000000000000000000000000", "period": 6048, "renewWindow": 2016, "download": 1400000000000, "upload": 1400000000000, "storage": 2000000000000, "prune": false }, "hosts": { "allowRedundantIPs": false, "maxDowntimeHours": 336, "minProtocolVersion": "1.6.0", "minRecentScanFailures": 10, "scoreOverrides": null } }

Bus Config

{"default":"autopilot"} {"hostBlockHeightLeeway":6,"maxContractPrice":"1000000000000000000000000","maxDownloadPrice":"800000000000000000000000000","maxRPCPrice":"1000000000000000000000","maxStoragePrice":"64814814815","maxUploadPrice":"40000000000000000000000000","migrationSurchargeMultiplier":10,"minAccountExpiry":86400000000000,"minMaxCollateral":"10000000000000000000000000","minMaxEphemeralAccountBalance":"1000000000000000000000000","minPriceTableValidity":300000000000} {"minShards":10,"totalShards":30} {"enabled":true,"slabBufferMaxSizeSoft":4294967296}

Contract Set Contracts

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 41316 0 41316 0 0 5935k 0 --:--:-- --:--:-- --:--:-- 6724k 50

Anything else?

I remember it not to delete old consensus at former versions.

@cmdntd cmdntd added the bug Something isn't working label Sep 9, 2024
@mike76-dev
Copy link
Contributor

renterd has switched to the new consensus database, which also contains the Merkle proofs for each block. This is done in the preparation for the upcoming hardfork. For this reason, renterd needs to resync from the beginning.

@cmdntd
Copy link
Author

cmdntd commented Sep 9, 2024

When did it switch to? That means I could save new consensus for future, doesn't it?
My old consensus have just been saved a few days ago.

@ChrisSchinnerl
Copy link
Member

Closing this since it's expected behavior starting from v1.1.0.

@cmdntd yes, you can save the new consensus now like you did the old one.

@ChrisSchinnerl ChrisSchinnerl closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants