CalDescent
8d6dffb3ff
Added test for bootstrap random host selection.
2021-10-06 18:23:17 +01:00
CalDescent
2f6a8f793b
Invert the colours in the splash screen
2021-10-06 18:22:52 +01:00
CalDescent
9bcd0bbfac
Reduce log spam
2021-10-06 18:22:38 +01:00
CalDescent
cd359de7eb
Scheduled maintenance now enabled by default, but uses a min and a max, to reduce the chances of multiple nodes running maintenance at the same time. Default to min: 7 days, max: 30 days.
2021-10-06 18:22:31 +01:00
CalDescent
b7e9af100a
Added scheduled repository maintenance feature. Currently disabled by default.
2021-10-06 08:52:27 +01:00
CalDescent
0d6409098f
Added another bootstrap host
2021-10-05 22:08:18 +01:00
CalDescent
e07238ded8
Fixed variable name
2021-10-04 22:52:47 +01:00
CalDescent
27903f278d
Add tmp folder to gitignore
2021-10-04 22:45:05 +01:00
CalDescent
ddf966d08c
Show progress status when extracting files
2021-10-04 22:44:51 +01:00
CalDescent
65dca36ae1
Show progress status when downloading a bootstrap
2021-10-04 22:38:58 +01:00
CalDescent
289dae0780
Fixed issue causing the local repository data backup to be overwritten with an empty list.
2021-10-04 09:28:16 +01:00
CalDescent
71f802ef35
Exponentially backoff when bootstrapping fails, to reduce bandwidth
...
The retry interval starts at 5 minutes and doubles with each failure.
2021-10-04 09:25:23 +01:00
CalDescent
0135f25b9d
Delete existing repository before extracting bootstrap
...
This limits the amount of additional space needed to the size of the compressed bootstrap (currently just under 4GB for full nodes, or 200MB for top-only nodes).
2021-10-04 09:15:54 +01:00
CalDescent
de3ebf664f
Fixed issue with format specifier
2021-10-04 09:11:11 +01:00
CalDescent
850d879726
Use a "tmp" folder in the Qortal directory rather than a system generated temp folder.
...
This avoids the need to move files between partitions, and we also can't assume that the system partition has enough space to do the extraction.
2021-10-04 09:10:56 +01:00
CalDescent
5397e6c723
Bump version to 2.0.0-beta.1
2021-10-03 22:59:11 +01:00
CalDescent
889f6fc5fc
Add a "testnet-" prefix in filenames when creating or importing bootstraps on testnet, so that the two databases can be kept separate.
2021-10-03 22:57:38 +01:00
CalDescent
41c2ed7c67
Fixed out of memory errors when copying AT states.
2021-10-03 22:51:15 +01:00
CalDescent
cdf47d4719
Reduce log spam.
2021-10-03 22:33:36 +01:00
CalDescent
210368bea0
Bump version to 2.0.0-beta.0
2021-10-03 19:43:28 +01:00
CalDescent
4f48751d0b
Fixed issue caused when trying to update the splash frame status in a headless environment.
2021-10-03 19:43:10 +01:00
CalDescent
b6d3e82304
Update status when performing repository maintenance
2021-10-03 19:31:05 +01:00
CalDescent
3bb3528aa5
Merge branch 'master' into bootstrap
2021-10-03 18:44:13 +01:00
CalDescent
4f892835b8
Show maximum time estimations in archiving and pruning statuses
2021-10-03 18:41:47 +01:00
CalDescent
ac49221639
Show warning status on startup if the database is missing the AtStatesHeightIndex.
2021-10-03 18:34:21 +01:00
CalDescent
75ed5db3e4
Test multiple files when bulk archiving.
2021-10-03 17:33:02 +01:00
CalDescent
59c8e4e6a2
Fixed bug in earlier commit
2021-10-03 16:09:52 +01:00
CalDescent
52b322b756
Take a backup of local data before overwriting with a bootstrap.
...
Also moved the import phase to after the validation phase, so that the data returns after the bootstrap.
2021-10-03 16:09:40 +01:00
CalDescent
dc876d9c96
Force a bootstrap if the block archive isn't intact on launch
...
This allows the topOnly setting to be disabled and the node will automatically bootstrap to the archive version. A rebuild isn't attempted if bootstrapping is disabled, in order to reduce risk.
2021-10-03 16:00:11 +01:00
CalDescent
5b028428c4
Checkpoint immediately after starting/upgrading the repository
...
This should fix a longstanding issue where quitting the core before the first checkpoint (1-2 hours after first launch) causes the database to become corrupt.
2021-10-03 15:47:10 +01:00
CalDescent
f67a0469fc
SplashFrame styling improvements
2021-10-03 15:33:53 +01:00
CalDescent
494cd0efff
Added white background to splash frame - I think it looks nicer this way, and it may solve the X2Go issues too.
2021-10-03 15:27:19 +01:00
CalDescent
fc8e38e862
Show version number in the "Starting Qortal Core" status.
2021-10-03 15:22:21 +01:00
CalDescent
f09fb5a209
Run the bulk block archiver any time that it isn't reported to be up to date. This should allow it to re-run if the user quits the core before it completes.
2021-10-03 15:17:31 +01:00
CalDescent
b00c1c1575
Update splash frame statuses when reshaping, pruning, or building the block archive
2021-10-03 15:16:36 +01:00
CalDescent
7e5dd62a92
Show bootstrap statuses on splash frame.
2021-10-03 15:01:50 +01:00
CalDescent
35718f6215
Fixed issue with bootstrap retries.
2021-10-03 15:00:40 +01:00
CalDescent
a6d3891a95
Fixed bugs when importing bootstrap.
2021-10-03 09:48:14 +01:00
CalDescent
9591c4eb58
Added support for creating top-only bootstraps
2021-10-02 19:13:18 +01:00
CalDescent
8aaf720b0b
Force archiveEnabled to false if we're in top only mode.
...
Most of the code handles this case anyway, but it's an easy place for bugs to be created. So it's safest to enforce it at the settings level.
2021-10-02 19:11:47 +01:00
CalDescent
63a35c97bc
Fixed bug in path returned to POST /bootstrap/create API.
2021-10-02 19:10:23 +01:00
CalDescent
8eddaa3fac
Small refactor to update wording.
2021-10-02 15:48:31 +01:00
CalDescent
1b3f37eb78
Delete the "archive" folder when in top-only mode
...
This allows a block archive node to be switched into top-only mode.
2021-10-02 15:37:06 +01:00
CalDescent
1f8fbfaa24
Missed a few topOnly references from the last commit.
2021-10-02 15:34:55 +01:00
CalDescent
ea92ccb4c1
"pruningEnabled" setting renamed to "topOnly"
...
Pruning is still a concept in the code, but since it relates to both archived and topOnly mode, it makes it cleaner to use "topOnly" to refer to the pruned db with no archive.
2021-10-02 15:13:23 +01:00
CalDescent
d25a77b633
Ignore bootstraps and other 7z archives in git.
2021-10-02 15:04:00 +01:00
CalDescent
51bb776e56
Select a random host when importing a bootstrap, and started adding support for multiple bootstrap types.
2021-10-02 15:03:31 +01:00
CalDescent
47b1b6daba
Retry the entire bootstrap import process on failure, rather than just the download.
2021-10-02 14:43:26 +01:00
CalDescent
adeb654248
Rework of repository maintenance and backups
...
It will now attempt to wait until there are no other active transactions before starting, to avoid deadlocks. A timeout for this process is specified - generally 60 seconds - so that callers can give up or retry if something is holding a transaction open for too long. Right now we will give up in all places except for bootstrap creation, where it will keep retrying until successful.
2021-10-02 13:23:26 +01:00
CalDescent
c4d7335fdd
Fixed more issues that could cause transactions to be held open.
2021-10-02 13:05:16 +01:00