Commit Graph

  • cbf03d58c8 Made synchronizer method public as it is now also used by the block minter. CalDescent 2022-01-26 22:04:09 +00:00
  • ba41d84af9 Initial attempt to avoid an unnecessary block submission if one of our peers already has a higher weight chain. CalDescent 2022-01-26 22:03:33 +00:00
  • 98831a9449 Break out of the various loops in the cleanup manager if the thread is stopping. CalDescent 2022-02-05 17:53:49 +00:00
  • 9692539a3f Don't include fee in balance calculation (it looks like it could be double counting at the moment). CalDescent 2022-02-05 17:24:33 +00:00
  • 76df332b57 Check for null IP address before notifying of an external IP update. CalDescent 2022-02-05 11:51:54 +00:00
  • c6405340bc minAccountLevelForBlockSubmissions reduced from 6 to 5 CalDescent 2022-02-05 11:33:28 +00:00
  • 775e3c065e Invalidate ElectrumX transactions cache when switching accounts. CalDescent 2022-02-05 10:23:25 +00:00
  • 8937b3ec86 Don't allow duplicate transaction in the incoming transactions queue. CalDescent 2022-02-05 10:19:26 +00:00
  • 3fbb86fded Added indexes, to make looking up name transactions by name around 5x faster. CalDescent 2022-02-04 16:27:31 +00:00
  • 0cf2f7f254 Missing import from last commit CalDescent 2022-02-04 16:18:00 +00:00
  • 9e571b87e8 Yet another rewrite of fetchAllTransactionsInvolvingName() - this time over 1000x faster since it doesn't involve joining the Transactions table. CalDescent 2022-02-04 16:17:31 +00:00
  • 23bafb6233 Removed unused methods CalDescent 2022-02-04 14:00:44 +00:00
  • 6dec65c5d9 Rewrite of fetchAllTransactionsInvolvingName() to avoid having to load all name transactions into memory. CalDescent 2022-02-04 13:58:05 +00:00
  • 4e59eb8958 Added unit test to simulate the false association between previous a UPDATE_NAME transaction, and the emoji name with a blank reducedName. CalDescent 2022-02-04 12:51:22 +00:00
  • 756d5e685a Added naming tests for blank new names CalDescent 2022-02-04 12:50:05 +00:00
  • f52530b848 More thorough approach to fetchAllTransactionsInvolvingName(), to fix an issue found in unit testing. CalDescent 2022-02-04 11:58:43 +00:00
  • c2bf37b878 Added transactionV5Timestamp featureTrigger to unit tests CalDescent 2022-02-04 11:37:41 +00:00
  • 98a2dd04b8 Fixed bug caused by improper handling of UPDATE_NAME transactions, similar to commit d16663f. CalDescent 2022-02-04 10:28:26 +00:00
  • 694ea689c8 Synchronize the loop and break out of it before fetching arbitrary data files. Hopeful fix for ConcurrentModificationException, and maybe a potential deadlock. CalDescent 2022-02-03 21:14:41 +00:00
  • 618aaaf243 Removed logs used for debugging only CalDescent 2022-02-03 21:06:36 +00:00
  • 9224ffbf73 Cache transaction list for 2 minutes, and synchronize, to prevent the balance and transactions APIs both requesting at once. CalDescent 2022-02-03 21:04:49 +00:00
  • 892612c084 Calculate wallet balances from the transactions (ElectrumX) rather than using bitcoinj. CalDescent 2022-02-03 20:22:25 +00:00
  • 077165b807 Modified fetchArbitraryDataFileList() to support requesting only the missing hashes, but it is not yet used. CalDescent 2022-02-03 20:01:44 +00:00
  • 7994fc6407 Rework of onNetworkGetArbitraryDataFileListMessage() to support custom hashes to be optionally supplied. CalDescent 2022-02-03 19:58:50 +00:00
  • d98df3e47d Added support for file hashes to optionally be included in GetArbitraryDataFileListMessage. CalDescent 2022-02-03 19:55:22 +00:00
  • 1064b1a08b Removed duplicate metadata file checks. CalDescent 2022-02-03 19:53:29 +00:00
  • 0b7a7ed0f1 Added some more debug logging relating to file responses. CalDescent 2022-02-03 19:52:28 +00:00
  • 114b1aac76 Added arbitrary data file manager thread, which will ensure that all file list responses are tried until we receive the files. CalDescent 2022-02-03 19:51:02 +00:00
  • 6d06953a0e Increased RELAY_REQUEST_MAX_HOPS from 3 to 4, in an attempt to reach more peers. CalDescent 2022-02-02 22:31:40 +00:00
  • 0430fc8a47 Give up immediately after a synchronization if we are shutting down the synchronizer CalDescent 2022-02-02 09:18:46 +00:00
  • 7338f5f985 Attempt to acquire a blockchain lock (for up to 5 seconds) before shutting down the repository. CalDescent 2022-02-02 09:17:24 +00:00
  • 640bcdd504 Shutdown/interrupt the synchronizer as early as possible CalDescent 2022-02-02 09:13:49 +00:00
  • c9d5d996e5 Increased accuracy of the block weights in the synchronizer logs, as the extra precision is now needed for debugging. CalDescent 2022-02-01 22:06:01 +00:00
  • 710befec0c Increased ARBITRARY_RELAY_TIMEOUT from 30 to 60 seconds, so that relay peers remember their mappings for longer. CalDescent 2022-02-01 22:04:53 +00:00
  • 8ccb158241 Reduce log spam when in DEBUG mode. CalDescent 2022-02-01 22:04:12 +00:00
  • 97199d9b91 Display the local and total chunk counts on the loading screen. CalDescent 2022-02-01 22:03:52 +00:00
  • 5a8b895475 Fixed bug in loading screen, which prevented the DOWNLOADING status from showing. CalDescent 2022-02-01 22:03:17 +00:00
  • 6c9600cda0 Added API key header to GET /arbitrary/resource/status/* endpoints CalDescent 2022-02-01 22:02:41 +00:00
  • 82fa6a4fd8 Include "localChunkCount" and "totalChunkCount" in the GET /arbitrary/resource/status/* API responses. CalDescent 2022-02-01 22:02:14 +00:00
  • 45f2d7ab70 Revert "We (currently) can't filter unconfirmed transactions by address, because only the public key is stored in the database until it is confirmed (at which point there is an entry in the TransactionParticipants table which contains the address). Given that this isn't a simple problem to solve, for now it makes sense to reject this combination if requested via the /transactions/search API." CalDescent 2022-02-01 21:55:41 +00:00
  • 33731b969a Direct peer connections now send a file list request to the peer, rather than individually requesting every chunk for a transaction. CalDescent 2022-02-01 09:04:31 +00:00
  • 40a8cdc71f Improved logging when fetching data files CalDescent 2022-01-31 22:35:12 +00:00
  • cbe83987d8 Fixed occasional ConcurrentModificationException in the block archive reader. CalDescent 2022-01-31 21:39:49 +00:00
  • 01e4bf3a77 Try to speed up the shutdown process of the cleanup manager. CalDescent 2022-01-31 21:39:20 +00:00
  • b198a8ea07 Fixed issue in ArbitraryDataFile.chunkExists() due to it not checking for the metadata file. CalDescent 2022-01-31 21:38:51 +00:00
  • e2e87766fa Moved log from INFO to DEBUG, as now the synchronizer is on its own thread it can occur more often than before. CalDescent 2022-01-30 20:15:43 +00:00
  • f005a0975d Shut down the synchronizer as soon as the controller is stopping, if we are able to. CalDescent 2022-01-30 20:14:11 +00:00
  • 5700369935 Prioritize syncing over transaction importing. CalDescent 2022-01-30 20:09:35 +00:00
  • 8a1fb6fe4e If a lock can't be obtained when synchronizing, automatically request the sync again. CalDescent 2022-01-30 20:09:09 +00:00
  • 5b788dad2f Relocated all synchronizer code from the controller to the synchronizer, and also moved synchonization onto its own thread. CalDescent 2022-01-30 20:01:22 +00:00
  • fa2bd40d5f Reduce log spam CalDescent 2022-01-30 19:51:49 +00:00
  • 074bfadb28 Don't bother locking if there are no new transactions to process CalDescent 2022-01-30 19:50:09 +00:00
  • bd60c793be Incoming transactions are now added to a queue, and then processed soon after. CalDescent 2022-01-30 19:03:31 +00:00
  • 90f3d2568a Log whenever the synchronizer can't obtain a blockchain lock, so that blockchain lock issues are more easily noticed. CalDescent 2022-01-30 19:00:28 +00:00
  • c73cdefe6f transactionV5Timestamp moved to blockchain.json CalDescent 2022-01-30 13:47:20 +00:00
  • c5093168b1 minAccountLevelToMint value moved to blockchain.json CalDescent 2022-01-29 22:59:04 +00:00
  • a35e309a2f minAccountLevelForBlockSubmissions moved to blockchain.json CalDescent 2022-01-29 22:57:22 +00:00
  • d4ff7bbe4d Fixed inaccurate README text that was accidentally merged from the data node repository. CalDescent 2022-01-29 22:37:27 +00:00
  • d4d73fc5fc Merge pull request #67 from otaku/docker CalDescent 2022-01-29 20:15:06 +00:00
  • bb35030112 Merge pull request #65 from QuickMythril/reduce-doge-fee CalDescent 2022-01-29 20:14:04 +00:00
  • 7aed0354f1 We (currently) can't filter unconfirmed transactions by address, because only the public key is stored in the database until it is confirmed (at which point there is an entry in the TransactionParticipants table which contains the address). Given that this isn't a simple problem to solve, for now it makes sense to reject this combination if requested via the /transactions/search API. CalDescent 2022-01-29 19:24:28 +00:00
  • c4f763960c Don't delete a resource's cache if a build is in progress. CalDescent 2022-01-29 19:18:06 +00:00
  • c5182a4589 Increased MAX_ACCOUNT_COUNT in GetOnlineAccountsMessage from 1000 to 5000 CalDescent 2022-01-29 12:39:43 +00:00
  • fc1a376fbd Added POST /transaction/fee API endpoint, to return the recommended fee for the supplied transaction data. CalDescent 2022-01-29 10:38:15 +00:00
  • 27387a134f Fixed typo CalDescent 2022-01-28 19:58:32 +00:00
  • be7bb2df9e Added GET /transaction/unitfee API endpoint, to obtain the unit fee for a transaction type CalDescent 2022-01-28 19:00:15 +00:00
  • 72a291a54a Added initial support of different unit fees per transaction type. CalDescent 2022-01-28 18:50:03 +00:00
  • b1342d84fb Updated potentially misleading log message. CalDescent 2022-01-28 11:02:37 +00:00
  • cdd57190ce Use getEffectiveMintingLevel() rather than getLevel() CalDescent 2022-01-28 10:16:42 +00:00
  • d200a098cd Updated AdvancedInstaller project for v3.0.4 CalDescent 2022-01-27 23:18:34 +00:00
  • a0ed3f53a4 Merge branch 'master' of github.com:Qortal/qortal CalDescent 2022-01-27 22:45:40 +00:00
  • e5c12b18af Bump version to 3.0.4 v3.0.4 CalDescent 2022-01-27 19:58:39 +00:00
  • 7808a1553e Fixed case sensitive ordering issues in other aspects of QDN. CalDescent 2022-01-27 18:46:59 +00:00
  • a0ba016171 Fixed case sensitive ordering issue in websites list. CalDescent 2022-01-27 18:42:52 +00:00
  • 344704b6bf MIN_LEVEL_FOR_BLOCK_SUBMISSION temporarily increased to 6. CalDescent 2022-01-27 18:15:00 +00:00
  • 3303e41a39 Fixed unhandled case in GET /arbitrary/{service}/{name}* endpoints CalDescent 2022-01-27 18:12:21 +00:00
  • 4e71ae0e59 Allow QDN data to be served without authentication by setting "qdnAuthBypassEnabled":true CalDescent 2022-01-27 18:10:24 +00:00
  • 9daf7a6668 Synchronize lists, to prevent an occasional ConcurrentModificationException CalDescent 2022-01-26 22:40:34 +00:00
  • 828aadd32d Added info to API documentation trade-portal-updates CalDescent 2022-01-24 19:22:36 +00:00
  • f5d3681a95 Stop sending presence transactions once a trade has started, otherwise trade bots that are in a bad state can keep an offer visible in the list. CalDescent 2022-01-24 18:39:14 +00:00
  • 29bed8e4a0 Allow tradebot deletion in the BOB_WAITING_FOR_AT_REDEEM state, to work around a bug where a trade can remain in the OFFERING state on chain but the local trade bot can switch to BOB_WAITING_FOR_AT_REDEEM. CalDescent 2022-01-24 18:27:02 +00:00
  • a2b2b63932 feat: add Dockerfile Alexander Do 2022-01-23 15:53:29 -08:00
  • af06774ba6 Clear the cache when deleting data, so that it disappears from the data management screen. CalDescent 2022-01-23 22:53:35 +00:00
  • 244d4f78e2 New network messages ONLINE_ACCOUNTS_V2 and GET_ONLINE_ACCOUNTS_V2. Increased GetOnlineAccountsMessage.MAX_ACCOUNT_COUNT from 1000 to 5000. catbref 2022-01-23 16:24:10 +00:00
  • 311fe98f44 Bump version to 3.0.3 v3.0.3 CalDescent 2022-01-23 13:19:49 +00:00
  • 6f7c8d96b9 Removed ApiService instance creation in ApplyUpdate as it wasn't really needed, and probably not sensible to instantiate it here. CalDescent 2022-01-23 12:57:28 +00:00
  • ff6ec83b1c Removed localAuthBypassEnabled override in unit tests. CalDescent 2022-01-23 12:48:37 +00:00
  • ea10eec926 Fixed bug in auto update process - use the API key when stopping the node. CalDescent 2022-01-23 12:38:19 +00:00
  • be561a1609 Add default "dataPath" to Windows installer builds, so that QDN data is located in AppData CalDescent 2022-01-22 22:27:14 +00:00
  • 6f724f648d Fixed testDirectoryDigest() which has been failing for a couple of versions (due to gitignore removing the cache file) CalDescent 2022-01-22 20:48:58 +00:00
  • 048776e090 Ignore failing test due to recent API update, which makes the test incompatible. To be fixed later. CalDescent 2022-01-22 20:43:28 +00:00
  • dedf65bd4b Added initial protocol methods for metadata requests and forwarding. Not tested yet. CalDescent 2022-01-22 20:24:37 +00:00
  • a7c02733ec Updated approve-auto-update.sh to use new service format CalDescent 2022-01-22 19:40:13 +00:00
  • 59346db427 Bump version to 3.0.2 v3.0.2 CalDescent 2022-01-22 18:45:32 +00:00
  • 25efee55b8 Added networking optimization, to avoid wasted processing on every read. CalDescent 2022-01-22 18:43:32 +00:00
  • a79ed02ccf Added initial (unfinished) category list, as well as the GET /arbitrary/categories API, and converted the category field from a string to an enum CalDescent 2022-01-22 12:11:16 +00:00
  • 79f87babdf Limit the metadata string lengths CalDescent 2022-01-21 22:52:31 +00:00
  • f296d5138b Allow metadata to optionally be included with any arbitrary resource. CalDescent 2022-01-21 21:14:28 +00:00
  • b30445c5f8 Increase MAX_ACCOUNT_COUNT to 5000 (around 0.5MB of data) to see if it helps with minting efficiency. CalDescent 2022-01-21 16:11:21 +00:00
  • d105613e51 Improvements to some /blocks API endpoints CalDescent 2022-01-21 16:07:18 +00:00