Commit Graph

  • 93eede7c6b Added missing break statement which caused a database version mismatch. CalDescent 2021-07-15 19:56:09 +01:00
  • 944e396823 Added AES utility class from baeldung and updated copyright notice for ZipUtils which was based on code from the same author. This code still needs reviewing and modifying but it's a good starting point for AES encryption and decryption. CalDescent 2021-07-15 19:50:42 +01:00
  • 8a654834ac Small reorganization. CalDescent 2021-07-15 19:47:53 +01:00
  • bb76fa80cd Another significant upgrade of arbitrary transactions CalDescent 2021-07-15 09:27:49 +01:00
  • 53f44a4029 Added support for subdirectories in the HTML parser. CalDescent 2021-07-14 18:03:51 +01:00
  • 182dcc7e5f MAX_FILE_SIZE reduced to 500MiB to match the difficulty calculation. CalDescent 2021-07-14 18:03:35 +01:00
  • 2d272e0207 Added some service constants. CalDescent 2021-07-14 17:50:55 +01:00
  • 9384a50879 Derive PoW difficulty from the file size. Exact values TBC. CalDescent 2021-07-13 22:18:21 +01:00
  • 00d4f35f2c Track the request time in arbitraryDataFileRequests and automatically remove those that have timed out. CalDescent 2021-07-11 10:28:14 +01:00
  • 483557163e Refactor: moved arbitrary data code from Controller to ArbitraryDataManager CalDescent 2021-07-11 10:17:38 +01:00
  • 2679252b04 Rework of arbitrary data requests CalDescent 2021-07-11 10:00:09 +01:00
  • 5a95c827b4 When serving a website, delete the unzipped directory if the index file is not found. CalDescent 2021-07-10 15:51:46 +01:00
  • f938d8c878 More refactoring CalDescent 2021-07-10 14:47:51 +01:00
  • bfc0122c1b Added warning to README CalDescent 2021-07-10 13:53:07 +01:00
  • 79691541ae Merge pull request #51 from JaymenChou/patch-2 CalDescent 2021-07-08 23:06:19 +01:00
  • 05d0542875 Merge pull request #50 from JaymenChou/patch-1 CalDescent 2021-07-08 23:06:03 +01:00
  • 1d22b39a1d Merge pull request #52 from marcomoesman/master CalDescent 2021-07-08 23:05:40 +01:00
  • 549b68cf71 Merge pull request #53 from DrewMPeacock/master CalDescent 2021-07-08 23:05:15 +01:00
  • 55f87de2e0 Updated AdvancedInstaller project for v1.5.6 CalDescent 2021-07-08 19:19:35 +01:00
  • b8424e20aa Bump version to 1.5.6 v1.5.6 CalDescent 2021-07-08 18:24:11 +01:00
  • bbe3a30e77 Removes the flawed BIP-39 implementation in the core. Removes API calls for /mnemonic. Sir.Galahad 2021-07-08 02:24:31 -06:00
  • cdc5348a06 Added "domain map" server CalDescent 2021-07-06 18:50:40 +01:00
  • e64a3978e6 Moved HTML parsing to new class. CalDescent 2021-07-06 08:23:28 +01:00
  • f2feb12708 /site API endpoint now tales a signature rather than a file hash CalDescent 2021-07-05 09:07:06 +01:00
  • 5319c5f832 Reworked existing unused ArbitraryDataManager. CalDescent 2021-07-05 09:05:45 +01:00
  • 7531fe14fe Fixed major performance issue in DataFile.toString() CalDescent 2021-07-05 08:23:29 +01:00
  • 0086c6373b Significant refactor of DataFile and DataFileChunk CalDescent 2021-07-05 07:26:20 +01:00
  • 10dc19652e Use "qortaldata-" version prefix CalDescent 2021-07-04 16:52:20 +01:00
  • 2f2c4964c5 Transaction version temporarily bumped to 5. TODO: We will need to set a hard fork timestamp if this is ever merged back into the main Qortal core repo. CalDescent 2021-07-04 16:43:12 +01:00
  • cb4203b6db Use public key as parameter instead of address, since we can obtain the address from the public key in all cases. CalDescent 2021-07-04 14:53:54 +01:00
  • bb5b62466e Fixed bug introduced in recent commit. CalDescent 2021-07-04 13:41:37 +01:00
  • 6407b5452b Delete our copies of data if any exception is thrown. CalDescent 2021-07-04 13:39:00 +01:00
  • a742fecf9c API refactors to avoid generic unhandled states. CalDescent 2021-07-04 13:38:20 +01:00
  • 60415b9222 /arbitrary/upload/creator/{address} now returns an unsigned ARBITRARY transaction, currently with pre-computed nonce (same as the /site equivalent) CalDescent 2021-07-04 10:25:15 +01:00
  • ffb39ef074 /data API endpoints moved to /arbitrary CalDescent 2021-07-04 09:49:01 +01:00
  • d73f5ed2b5 /site/upload/creator/{address} now returns an unsigned ARBITRARY transaction, currently with pre-computed nonce CalDescent 2021-07-04 09:45:52 +01:00
  • 7af973b60d Removed TODO comments that are now done. CalDescent 2021-07-04 09:41:53 +01:00
  • 49eddc9da5 Allow zero fee transactions if the fee is zero in blockchain.json CalDescent 2021-07-04 09:31:51 +01:00
  • 4b1de108d1 Fixed bug in expected chunk count. CalDescent 2021-07-03 18:42:42 +01:00
  • e46c735efa Fixed recently introduced bugs with file management. CalDescent 2021-07-03 18:05:17 +01:00
  • 56da7deb4c DataFile updates to simplify integration with arbitrary transactions. CalDescent 2021-07-03 17:41:52 +01:00
  • 5f4649ee2b Major upgrade of arbitrary transactions CalDescent 2021-07-03 17:40:02 +01:00
  • 7cc2c4f621 Progress on website API endpoints. CalDescent 2021-07-02 08:57:55 +01:00
  • cc449f9304 Added DataFile.chunkHashes() method which appends all hashes into a single byte array (32 bytes / 256 bits each). CalDescent 2021-07-02 08:54:05 +01:00
  • 28425efbe7 Added jsoup dependency - this was missing from an earlier commit. CalDescent 2021-07-02 08:52:38 +01:00
  • 8c3a22aa5c Improved link replacement criteria. CalDescent 2021-07-01 11:21:40 +01:00
  • f3e5933599 Fixed naming error in joinFiles API. CalDescent 2021-07-01 11:18:46 +01:00
  • 39d8750ef9 Merge branch 'Qortal:master' into master Marco Moesman 2021-07-01 10:24:03 +02:00
  • 52b0c244a8 Extend CHECKPOINT_LOCK to HSQLDBSaver.execute() CalDescent 2021-06-28 19:24:53 +01:00
  • ee95a00ce2 Hopeful fix for "Performing repository CHECKPOINT..." deadlock. CalDescent 2021-06-28 09:13:36 +01:00
  • 11566ec923 set icon on status change QuickMythril 2021-06-27 03:45:15 -04:00
  • a78ff08202 add setTrayIcon function QuickMythril 2021-06-27 03:44:29 -04:00
  • ceb3969c8b load icons into gui QuickMythril 2021-06-27 03:44:25 -04:00
  • 6f048ef40e add status icons QuickMythril 2021-06-27 03:41:49 -04:00
  • aac4fe37e8 Fixed API response description. CalDescent 2021-06-26 10:28:22 +01:00
  • ebfa941a4f Fixed some file separators. CalDescent 2021-06-26 10:27:32 +01:00
  • 47c70eea9e Use system temp directory instead of making a "temp" subfolder when zipping files. CalDescent 2021-06-26 10:11:34 +01:00
  • fe7c40cb7c Reduced log spam. CalDescent 2021-06-25 19:31:28 +01:00
  • 8973626a4b Fixed issue with temp directory on Linux. CalDescent 2021-06-25 19:31:13 +01:00
  • ace5d999e2 Log a comma separated list of hashes after splitting a file into chunks, so they can easily be requested from another node using the //data/files/frompeer/{peer} API endpoint. Again temporary until the sync happens automatically. CalDescent 2021-06-25 19:30:45 +01:00
  • 52829a244b More work on APIs to request files from peers. I won't spend too long making these perfect as they are mostly a temporary measure. CalDescent 2021-06-25 19:28:39 +01:00
  • 71c247fe56 Added POST /data/file/{hash}/build API, used to join multiple chunks together. CalDescent 2021-06-25 19:28:01 +01:00
  • b34066f579 More work on HTML parsing. CalDescent 2021-06-25 08:34:44 +01:00
  • b286c15c51 Optimized website serving, and added code to return the correct content types. CalDescent 2021-06-25 08:32:22 +01:00
  • aff4f6c859 Create TransactionValidity_nl.properties Marco Moesman 2021-06-24 19:13:55 +02:00
  • 1f8f73fa30 Create ApiError_nl.properties Marco Moesman 2021-06-24 18:44:53 +02:00
  • 620d6624a9 Create SysTray_nl.properties Marco Moesman 2021-06-24 18:30:50 +02:00
  • 287f42ae64 Update and rename SysTray_zh.properties to SysTray_zh_SC.properties JaymenChou 2021-06-24 11:42:48 +08:00
  • d976c97d13 Create SysTray_zh_TC.properties JaymenChou 2021-06-24 11:31:46 +08:00
  • 6d549b0754 Updated AdvancedInstaller project for v1.5.5 CalDescent 2021-06-23 19:57:03 +01:00
  • 02dd64558f Bump version to 1.5.5 v1.5.5 CalDescent 2021-06-23 18:21:55 +01:00
  • ea5e2f5580 Added POST /site/preview API CalDescent 2021-06-23 09:28:38 +01:00
  • b65c7a75fe Handle relative links when parsing HTML. CalDescent 2021-06-23 09:26:41 +01:00
  • 39f5dce51c Moved "directory" data uploads to new POST /site/upload API. CalDescent 2021-06-23 09:10:06 +01:00
  • f77ec1faf6 A very crude proof of concept which serves a website from a zipped (and in future, chunked) data blob. This forms the beginnings of the "website hosting" layer on top of the data storage. It needs a significant rework - most importantly so that we aren't serving every asset from memory, and also so that the correct content-type headers are returned, etc. CalDescent 2021-06-23 08:43:21 +01:00
  • cd3a1e0159 Increased max file size to 1GiB. Will review this again later. CalDescent 2021-06-23 08:33:53 +01:00
  • 3f20fadb81 When zipping files, rename the outer folder to "data" instead of using the original folder name. This means that the data can be accessed deterministically without the need to first lookup the folder name. CalDescent 2021-06-23 08:09:59 +01:00
  • 1c6428dd3b Added equivalent split and join test but this time using a 5.5MiB source file. CalDescent 2021-06-23 08:07:35 +01:00
  • aca620241a More work on data file split/join, and added a test. CalDescent 2021-06-22 08:58:16 +01:00
  • 808b36e088 Specify chunk size when splitting. CalDescent 2021-06-22 07:44:34 +01:00
  • 1613375cc0 Added more validation of files received in GET /data/file/frompeer CalDescent 2021-06-21 19:03:34 +01:00
  • 787ef957d2 Added support for uploading an entire directory via POST /data/upload/path CalDescent 2021-06-21 19:02:49 +01:00
  • b915d0aed5 Only create the output file directories when we are actually writing a file there. This should prevent empty directories being created when initializing a nonexistent DataFile using a hash. CalDescent 2021-06-21 08:40:52 +01:00
  • 16dc5b5327 Include the data length in DataFileMessage, which is more similar to the approach used by ArbitraryDataMessage. These two message types are very similar, except arbitrary code currently has a requirement of one piece of data per signature, whereas DataFile code is independent and can support multiple files per transaction. Maybe the two can be combined at some point, but for now I'll keep them separate. CalDescent 2021-06-20 19:49:10 +01:00
  • d25e98d9c4 Include peer connection ID in recently created log message. CalDescent 2021-06-20 10:26:14 +01:00
  • a48a9592d0 Merge branch 'master' into sync-multiple-blocks sync-multiple-blocks CalDescent 2021-06-20 08:16:29 +01:00
  • 227cdc1ec8 Log each sync attempt when our blockchain isn't up to date CalDescent 2021-06-20 07:25:25 +01:00
  • c2d0c63db0 Improved error logging. CalDescent 2021-06-19 20:31:04 +01:00
  • f5c9807a48 Use contains() rather than equals() when matching a peer in /data/file/frompeer, so that the port can be optionally left out. CalDescent 2021-06-19 20:29:05 +01:00
  • 7e9b1d5e16 Rework of DataFile.base58Digest() CalDescent 2021-06-19 20:25:25 +01:00
  • 5070c4eea9 Better handling of data file responses in the /data/file/frompeer API endpoint. CalDescent 2021-06-19 20:23:33 +01:00
  • 33d9c51b6f Validate supplied base58 string in /data/file/frompeer API endpoint CalDescent 2021-06-19 19:26:13 +01:00
  • d0f9d478c2 Fixed bug which prevented the DATA_FILE message ID from making it through to the reply queue. CalDescent 2021-06-19 19:05:11 +01:00
  • f296ec46c8 Removed unused headers. CalDescent 2021-06-19 17:32:55 +01:00
  • 64d19e480b Chunk size set to 1MB for now, as it seems that our networking code has problems when transferring 2MB chunks. We can increase this later once that problem has been fixed. CalDescent 2021-06-19 17:32:48 +01:00
  • 2c585a9328 Upper connection time limit reduced from 60 mins to 20 mins. CalDescent 2021-06-19 17:25:50 +01:00
  • 45b0d9e19b Added more initial peers, submitted by CWDSYSTEMS CalDescent 2021-06-19 16:19:53 +01:00
  • 026a4b896c Added BTC and LTC electrum nodes submitted by CWDSYSTEMS CalDescent 2021-06-19 14:50:18 +01:00
  • 78237fcd11 Don't intentionally disconnect peers if we are currently syncing with them. CalDescent 2021-06-19 13:12:16 +01:00
  • 73cc3dcb92 Force a disconnect of each peer when the connection age reaches the maximum allowed time. CalDescent 2021-06-19 13:03:46 +01:00