Commit Graph

  • 889f6fc5fc Add a "testnet-" prefix in filenames when creating or importing bootstraps on testnet, so that the two databases can be kept separate. CalDescent 2021-10-03 22:57:38 +01:00
  • 41c2ed7c67 Fixed out of memory errors when copying AT states. CalDescent 2021-10-03 22:51:15 +01:00
  • cdf47d4719 Reduce log spam. CalDescent 2021-10-03 22:33:36 +01:00
  • 210368bea0 Bump version to 2.0.0-beta.0 CalDescent 2021-10-03 19:43:28 +01:00
  • 4f48751d0b Fixed issue caused when trying to update the splash frame status in a headless environment. CalDescent 2021-10-03 19:43:10 +01:00
  • b6d3e82304 Update status when performing repository maintenance CalDescent 2021-10-03 19:31:05 +01:00
  • 3bb3528aa5 Merge branch 'master' into bootstrap bootstrap CalDescent 2021-10-03 18:44:13 +01:00
  • 4f892835b8 Show maximum time estimations in archiving and pruning statuses CalDescent 2021-10-03 18:41:47 +01:00
  • ac49221639 Show warning status on startup if the database is missing the AtStatesHeightIndex. CalDescent 2021-10-03 18:34:21 +01:00
  • 75ed5db3e4 Test multiple files when bulk archiving. CalDescent 2021-10-03 17:33:02 +01:00
  • 59c8e4e6a2 Fixed bug in earlier commit CalDescent 2021-10-03 16:09:52 +01:00
  • 52b322b756 Take a backup of local data before overwriting with a bootstrap. CalDescent 2021-10-03 16:09:40 +01:00
  • dc876d9c96 Force a bootstrap if the block archive isn't intact on launch CalDescent 2021-10-03 16:00:11 +01:00
  • 5b028428c4 Checkpoint immediately after starting/upgrading the repository CalDescent 2021-10-03 15:47:10 +01:00
  • f67a0469fc SplashFrame styling improvements CalDescent 2021-10-03 15:33:53 +01:00
  • 494cd0efff Added white background to splash frame - I think it looks nicer this way, and it may solve the X2Go issues too. CalDescent 2021-10-03 15:27:19 +01:00
  • fc8e38e862 Show version number in the "Starting Qortal Core" status. CalDescent 2021-10-03 15:22:21 +01:00
  • 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. CalDescent 2021-10-03 15:17:31 +01:00
  • b00c1c1575 Update splash frame statuses when reshaping, pruning, or building the block archive CalDescent 2021-10-03 15:16:36 +01:00
  • 7e5dd62a92 Show bootstrap statuses on splash frame. CalDescent 2021-10-03 15:01:50 +01:00
  • 35718f6215 Fixed issue with bootstrap retries. CalDescent 2021-10-03 15:00:40 +01:00
  • a6d3891a95 Fixed bugs when importing bootstrap. CalDescent 2021-10-03 09:48:14 +01:00
  • 9591c4eb58 Added support for creating top-only bootstraps CalDescent 2021-10-02 19:13:18 +01:00
  • 8aaf720b0b Force archiveEnabled to false if we're in top only mode. CalDescent 2021-10-02 19:11:47 +01:00
  • 63a35c97bc Fixed bug in path returned to POST /bootstrap/create API. CalDescent 2021-10-02 19:10:23 +01:00
  • 8eddaa3fac Small refactor to update wording. CalDescent 2021-10-02 15:48:31 +01:00
  • 1b3f37eb78 Delete the "archive" folder when in top-only mode CalDescent 2021-10-02 15:37:06 +01:00
  • 1f8fbfaa24 Missed a few topOnly references from the last commit. CalDescent 2021-10-02 15:34:55 +01:00
  • ea92ccb4c1 "pruningEnabled" setting renamed to "topOnly" CalDescent 2021-10-02 15:13:23 +01:00
  • d25a77b633 Ignore bootstraps and other 7z archives in git. CalDescent 2021-10-02 15:04:00 +01:00
  • 51bb776e56 Select a random host when importing a bootstrap, and started adding support for multiple bootstrap types. CalDescent 2021-10-02 15:03:31 +01:00
  • 47b1b6daba Retry the entire bootstrap import process on failure, rather than just the download. CalDescent 2021-10-02 14:43:26 +01:00
  • adeb654248 Rework of repository maintenance and backups CalDescent 2021-10-02 13:23:26 +01:00
  • c4d7335fdd Fixed more issues that could cause transactions to be held open. CalDescent 2021-10-02 13:05:16 +01:00
  • ca7f42c409 Reduced unnecessary database queries in the block archiver. CalDescent 2021-10-02 11:52:20 +01:00
  • ca02cd72ae Fixed issue in block archiver, which caused it to hold a transaction open for a very long time. This caused deadlocks when trying to create bootstraps or perform repository maintenance. CalDescent 2021-10-02 11:51:53 +01:00
  • 1ba542eb50 Simplified minting code in block archive tests. CalDescent 2021-10-01 14:51:45 +01:00
  • 53cd967541 Added defrag (repository maintenance) tests. CalDescent 2021-10-01 14:51:28 +01:00
  • 49749a0bc7 Added more precise checking of database states to the bulk pruning test. This highlighted a major bug in the bulk prune process whereby the recent AT states weren't being retained. CalDescent 2021-10-01 11:03:56 +01:00
  • 446f924380 Added bulk pruning test, which highlighted some bugs in both bulk and regular pruning. CalDescent 2021-10-01 09:32:35 +01:00
  • 5b231170cd Fixed small issues with block archive tests. CalDescent 2021-10-01 08:10:28 +01:00
  • 7375357b11 Added bootstrap tests CalDescent 2021-10-01 07:44:33 +01:00
  • 347d799d85 Reduce log spam. CalDescent 2021-09-28 20:30:06 +01:00
  • 0d17f02191 Pass a repository instance into the bulk archiving and pruning methods. CalDescent 2021-09-28 20:29:53 +01:00
  • ce5bc80347 Increased threshold of BlockArchiveWriter.isArchiverUpToDate() from 90 to 95%. CalDescent 2021-09-28 20:21:19 +01:00
  • 0a4479fe9e Initial implementation of automatic bootstrapping CalDescent 2021-09-28 20:17:19 +01:00
  • de8e96cd75 Added Blockchain.validateAllBlocks() to check every block back to genesis. CalDescent 2021-09-28 09:28:47 +01:00
  • e2a62f88a6 Modified repository backup and recovery to allow a custom filename to be specified. CalDescent 2021-09-28 09:26:18 +01:00
  • 8926d2a73c Rework of import/export process. CalDescent 2021-09-28 09:24:21 +01:00
  • 114833cf8e Fixed NPE when attempting to lookup a block signature that doesn't exist. CalDescent 2021-09-27 09:13:19 +01:00
  • 32227436e0 Updated AdvancedInstaller project for v1.7.0 CalDescent 2021-09-27 08:43:44 +01:00
  • 28ff5636af Bump version to 1.7.0 v1.7.0 CalDescent 2021-09-26 22:20:21 +01:00
  • 656896d16f Fixed issue causing base block prune/trim heights to not be updated on the final pass. block-archive CalDescent 2021-09-24 21:36:05 +01:00
  • 19bf8afece Fixed bug in pruning phase on node startup CalDescent 2021-09-24 20:52:45 +01:00
  • 841b6c4ddf Fixed another issue causing ATStatesHeightIndex to go missing after pruning. CalDescent 2021-09-24 15:58:09 +01:00
  • 4c171df848 Disable archiving and pruning if the AtStatesHeightIndex is missing, and log it so that the user knows they should bootstrap or resync. CalDescent 2021-09-24 11:14:18 +01:00
  • 1f79d88840 Fixed errors found in unit tests. CalDescent 2021-09-24 09:35:36 +01:00
  • 6ee7e9d731 Merge branch 'block-archive' of github.com:Qortal/qortal into block-archive CalDescent 2021-09-24 08:50:35 +01:00
  • 4856223838 Fixed error in rebase. CalDescent 2021-09-24 08:50:00 +01:00
  • 74ea2a847d Added unit tests for trimming, pruning, and archiving. CalDescent 2021-09-12 10:13:52 +01:00
  • 9813dde3d9 Added importFromArchive() feature CalDescent 2021-09-12 10:10:25 +01:00
  • fea7b62b9c Fixed some bugs found in unit testing. CalDescent 2021-09-12 09:57:12 +01:00
  • 37e03bf2bb Removed BLOCK_LIMIT_REACHED result from the block archive writer. CalDescent 2021-09-12 09:55:49 +01:00
  • 5656de79a2 Removed maxDuplicatedBlocksWhenArchiving setting as it's no longer needed. CalDescent 2021-09-12 09:52:28 +01:00
  • 70c6048cc1 Added block archive mode CalDescent 2021-09-04 19:40:51 +01:00
  • 87595fd704 Synchronized LatestATStates, to make rebuildLatestAtStates() thread safe. CalDescent 2021-08-28 11:00:49 +01:00
  • dc030a42bb Moved trimming and pruning classes into a single package (org.qortal.controller.repository) CalDescent 2021-08-25 18:57:04 +01:00
  • 89283ed179 Increased atStatesPruneBatchSize from 10 to 25. CalDescent 2021-08-25 18:54:10 +01:00
  • 64e8a05a9f Prune ATStatesData as well as the ATStates when switching to pruning mode. CalDescent 2021-08-25 18:53:25 +01:00
  • 676320586a Updated tests to use the renamed method. CalDescent 2021-08-25 18:51:45 +01:00
  • 734fa51806 Unified the code to build the LatestATStates table, as it's now used by more than one class. CalDescent 2021-08-25 18:50:41 +01:00
  • f056ecc8d8 Added bulk pruning phase on node startup the first time that pruning mode is enabled. CalDescent 2021-08-23 21:17:51 +01:00
  • 1a722c1517 Break out of the AT pruning inner loops if we're stopping the app. CalDescent 2021-08-22 15:21:18 +01:00
  • 44607ba6a4 Fixed NPE introduced in earlier commit. CalDescent 2021-08-22 15:20:28 +01:00
  • 01d66212da Updated AT states pruner as it previously relied on blocks being present in the db to make decisions. As a side effect, this now prunes ATs up the the pruneBlockLimit too, rather than keeping the last 35 days or so. Will review this later but I don't think we will need the missing ones. CalDescent 2021-08-22 15:20:11 +01:00
  • 925e10b19b Rework of Blockchain.validate() to account for pruning mode. CalDescent 2021-08-22 15:18:11 +01:00
  • 1b4c75a76e Prune all blocks up until the blockPruneLimit CalDescent 2021-08-22 15:17:46 +01:00
  • 3400e36ac4 Started work on pruning mode (top-only-sync) CalDescent 2021-08-22 08:01:02 +01:00
  • 78e2ae4f36 Allow trade bots in the REFUNDING state to be deleted, if the user chooses to via the DELETE /crosschain/tradebot API endpoint. CalDescent 2021-09-23 17:53:57 +01:00
  • 957944f6a5 Revert "original design" CalDescent 2021-09-23 17:44:57 +01:00
  • 9eab500e2c atStatesMaxLifetime reduced from 14 days to 5 days CalDescent 2021-09-23 08:42:15 +01:00
  • 573f4675a1 Reduced online account signatures min and max lifetimes CalDescent 2021-09-03 10:11:02 +01:00
  • e6bde3e1f4 Minimum order size set to 0.01 LTC, to avoid dust errors. CalDescent 2021-09-23 08:36:55 +01:00
  • 5869174021 Combined the three invalid name registration block patches into a single class. This should allow syncing from genesis again. CalDescent 2021-09-23 08:28:51 +01:00
  • 449761b6ca Rework of "Names" integrity check CalDescent 2021-09-22 08:15:23 +01:00
  • 39d5ce19e2 Removed unused import. CalDescent 2021-09-19 20:24:12 +01:00
  • 3b156bc5c9 Added database integrity check for registered names CalDescent 2021-09-19 20:23:59 +01:00
  • a4f5124b61 Delete signatures from the invalidBlockSignatures array if we haven't seen them in over 1 hour CalDescent 2021-09-19 19:46:48 +01:00
  • 47a34c2f54 Validate blocks in syncToPeerChain() before orphaning CalDescent 2021-09-19 17:33:04 +01:00
  • 8a7446fb40 Added "apiKeyDisabled" setting to bypass API key / loopback checking for those who need it. CalDescent 2021-09-19 09:34:48 +01:00
  • 705e7d1cf1 Test name.register() and name.unregister() CalDescent 2021-09-18 13:28:44 +01:00
  • 44a90b4e12 Keep track of invalid block signatures and avoid peers that return them CalDescent 2021-09-18 10:58:05 +01:00
  • 54e5a65cf0 Allow an alternative block to be minted if the chain stalls due to an invalid block CalDescent 2021-09-18 10:41:58 +01:00
  • 06a2c380bd Updated and added some naming tests. CalDescent 2021-09-17 09:34:10 +01:00
  • 33ac1fed2a Revert "Treat a REGISTER_NAME transaction as an UPDATE_NAME if the creator matches." CalDescent 2021-09-16 19:27:17 +01:00
  • cc65a7cd11 Fixed bug which prevented the "reduced name" from being updated in UPDATE_NAME transactions. CalDescent 2021-09-14 20:38:20 +01:00
  • d600a54034 Modified name update tests to check the reduced name. CalDescent 2021-09-14 20:34:42 +01:00
  • ba06225b01 Merge branch 'master' into block-archive CalDescent 2021-09-12 10:17:11 +01:00
  • ce60ab8e00 Updated naming unit tests CalDescent 2021-09-12 10:16:07 +01:00
  • 14f6fd19ef Added unit tests for trimming, pruning, and archiving. CalDescent 2021-09-12 10:13:52 +01:00