Commit Graph

  • 7798b8dcdc Keep items in arbitraryDataFileHashResponses if they are currently being requested by another thread. This should help to locate the higher numbered chunks from larger resources. CalDescent 2022-02-20 11:33:09 +00:00
  • 146e7970bf Synchronize this.allKnownPeers and this.connectedPeers in Network.requestDataFromPeer(), to make the method thread-safe. CalDescent 2022-02-20 11:04:33 +00:00
  • f4f7cc58e3 Removed unused import. CalDescent 2022-02-20 10:44:59 +00:00
  • 21b4b494e7 Renamed method. CalDescent 2022-02-20 10:44:38 +00:00
  • 7307844bee If UPnP is disabled in settings, close the existing external listenPort if a UPnP rule exists. CalDescent 2022-02-20 10:44:20 +00:00
  • 5d419dd4ec Handle case where funds are sent to and from the same bitcoiny deterministic wallet. CalDescent 2022-02-19 17:45:24 +00:00
  • 6d0db7cc5e Catch UncheckedIOException in findAllHostedPaths() which was seen when a file was deleted by another thread. CalDescent 2022-02-19 17:18:51 +00:00
  • 8de606588c Attempt to open the listen port (default 12392) using UPnP, if the local network supports it. CalDescent 2022-02-18 20:11:00 +00:00
  • 5842b1272d Add WaifUPnP-1.1 jar to project. CalDescent 2022-02-18 20:05:14 +00:00
  • 35b0a85818 Increased WALLET_KEY_LOOKAHEAD_INCREMENT_BITCOINJ to 50 CalDescent 2022-02-18 18:42:06 +00:00
  • fcdd85af6c Try a lookahead size of 20 (instead of 3) when asking Bitcoinj for the balance. CalDescent 2022-02-08 18:27:44 +00:00
  • 5aac2dc9df ONLINE_ACCOUNTS_V2_PEER_VERSION set to 3.2.0 CalDescent 2022-02-18 18:34:00 +00:00
  • 17a9b4e442 Merge pull request #66 from catbref/network-online-accounts-v2 CalDescent 2022-02-18 18:28:52 +00:00
  • becb0b37e6 Merge branch 'master' into network-online-accounts-v2 CalDescent 2022-02-18 17:12:44 +00:00
  • 67ca876567 Log if we're unable to process the received file. CalDescent 2022-02-18 15:35:37 +00:00
  • 464ce66fd5 Moved deletion retry code into ArbitraryDataFile CalDescent 2022-02-18 15:09:50 +00:00
  • 3e505481fe Default minPeerVersion also increased to 3.1.0 CalDescent 2022-02-18 14:50:46 +00:00
  • c90c3a183e Block peers below 3.1.0 CalDescent 2022-02-18 14:50:29 +00:00
  • d1a7e734dc Updated AdvancedInstaller project for v3.1.1 CalDescent 2022-02-15 23:36:38 +00:00
  • 6054982379 Bump version to 3.1.1 v3.1.1 CalDescent 2022-02-15 20:02:21 +00:00
  • 85b3278c8a Don't throttle the arbitrary data file request threads when there are items to process. CalDescent 2022-02-15 19:39:26 +00:00
  • c90c287601 Increased ARBITRARY_REQUEST_TIMEOUT from 10 to 12 seconds, as some were coming back around 9-10 seconds later. CalDescent 2022-02-15 19:38:30 +00:00
  • 6ee395ed12 Stop bulk arbitrary signature broadcasts, as they were creating a lot of network traffic, and are in the process of being replaced with a better method. CalDescent 2022-02-15 19:10:20 +00:00
  • 6275ac2b81 Increased numberOfAdditionalBatchesToSearch from 5 to 7. CalDescent 2022-02-14 22:58:37 +00:00
  • fd0a6ec71f Fix for invalid balance (and transaction amount) when there are no outputs relating to this wallet. CalDescent 2022-02-14 22:53:30 +00:00
  • 6c1c814aca Updated AdvancedInstaller project for v3.1.0 CalDescent 2022-02-14 20:15:37 +00:00
  • 43791f00aa Wait 2 minutes on node startup before trying to fetch followed QDN data. CalDescent 2022-02-14 19:33:58 +00:00
  • 538ac30b4e Request only the missing hashes, not all of them. CalDescent 2022-02-14 19:33:36 +00:00
  • 58f11489db Bump version to 3.1.0 v3.1.0 CalDescent 2022-02-13 20:32:19 +00:00
  • acddf36467 Handle missing includeMetadata parameter. CalDescent 2022-02-13 19:27:12 +00:00
  • 166d32032a Fixed message IDs. CalDescent 2022-02-13 19:22:20 +00:00
  • e4238a62c9 Exclude metadata-only transactions in the data management page (but added an API parameter to allow them to optionally be included). CalDescent 2022-02-13 19:21:16 +00:00
  • ad9c466712 Fall back to UNCATEGORIZED if the parsed category doesn't match any available categories. CalDescent 2022-02-13 18:10:56 +00:00
  • a3d31bbaf1 Category updates based on feedback so far. CalDescent 2022-02-13 17:56:47 +00:00
  • 4821139501 Merge branch 'master' into qdn-metadata CalDescent 2022-02-13 15:50:12 +00:00
  • 83213800b9 Use the timestamp from the registerNameTransactionData in unit tests, rather than the current time. CalDescent 2022-02-13 15:05:28 +00:00
  • 265ae19591 Fixed other failing tests due to increased REGISTER_NAME transaction fee. At some point we should determine the correct fee inside of generateBase(), but setting it explicitly adds confidence in testing for now. CalDescent 2022-02-13 14:31:21 +00:00
  • c1598d20b5 Name registration fee increase timestamp set to Sunday, 20 February 2022 16:00:00 UTC CalDescent 2022-02-13 13:47:00 +00:00
  • 0712259057 Implemented REGISTER_NAME transaction fee increase from 0.001 to 5 QORT (average value based on community vote). CalDescent 2022-02-13 13:45:48 +00:00
  • ea42a5617f Fixed ElectrumX log spam and errors CalDescent 2022-02-13 10:58:45 +00:00
  • 58a690e2c3 Route through new getAddressTransactions() wrapper. CalDescent 2022-02-11 18:15:27 +00:00
  • 3ae2f0086e Removed unusably slow electrum peer CalDescent 2022-02-11 18:13:45 +00:00
  • 19c83cc54d MAX_AVG_RESPONSE_TIME reduced to 500, as one peer regularly takes around 600ms to reply. CalDescent 2022-02-11 18:12:34 +00:00
  • 8ac298e07d Allow 3 retries for getTransaction() and getAddressTransactions() requests CalDescent 2022-02-11 18:11:00 +00:00
  • 9b43e4ea3d Time electrum requests, and move on to another server if one takes more than 1000ms on average to respond (measured over the last 5 requests). CalDescent 2022-02-11 18:02:56 +00:00
  • dbacfb964b Increased TX_CACHE_SIZE from 200 to 1000, to speed up loading times on large wallets. CalDescent 2022-02-11 16:55:29 +00:00
  • a664a6a790 Added more LTC Electrum peers from https://1209k.com/bitcoin-eye/ele.php?chain=ltc CalDescent 2022-02-11 16:44:34 +00:00
  • ee1f072056 Improvement to last commit, so that caller class names are preserved. CalDescent 2022-02-11 15:34:31 +00:00
  • a6aabaa7f0 Reduce build queue log spam by only logging high priority items (5 and above). CalDescent 2022-02-11 15:28:41 +00:00
  • 49b307db60 Treat a null priority as 0 CalDescent 2022-02-11 15:17:02 +00:00
  • f7341cd9ab Increased /arbitrary priority to 1 CalDescent 2022-02-11 15:13:53 +00:00
  • 6932fb9935 Added "priority" property to build queue items. CalDescent 2022-02-11 15:08:12 +00:00
  • 2343e739d1 Handle case where a file cannot be unzipped. CalDescent 2022-02-11 14:35:46 +00:00
  • fc82f0b622 Use 5 builder threads, so that one slow resource (e.g. a thumbnail) doesn't hold up the other queued build items. CalDescent 2022-02-11 13:58:45 +00:00
  • c0c50f2e18 Updated bootstrap hosts CalDescent 2022-02-11 13:33:25 +00:00
  • 9332d7207e Fixed bug in cache clearing logic, which was often preventing resource updates from being detected. CalDescent 2022-02-10 09:22:54 +00:00
  • a8c79b807b Discard any uncommitted changes as a result of the higher weight chain detection CalDescent 2022-02-10 08:16:30 +00:00
  • 2637311ef5 Prevent potential ConcurrentModificationException in the build queue CalDescent 2022-02-09 20:20:30 +00:00
  • 06b5b8f793 Reduced time between processing build tasks, to prevent builds with invalid criteria from holding up legitimate builds too much. CalDescent 2022-02-09 20:17:56 +00:00
  • 61f58173cb Revert "Removed transaction caching. Can be reintroduced later." CalDescent 2022-02-09 19:46:20 +00:00
  • b7b66f6cba Revert "Removed getWalletTransactions() synchronization. Again, can be re-added later." CalDescent 2022-02-09 19:46:16 +00:00
  • dda2316884 Revert "Try a lookahead size of 20 (instead of 3) when asking Bitcoinj for the balance." CalDescent 2022-02-09 19:46:10 +00:00
  • b782679d1f Revert "Revert "Calculate wallet balances from the transactions (ElectrumX) rather than using bitcoinj."" CalDescent 2022-02-09 19:46:06 +00:00
  • b0f19f8f70 Merge branch 'block-minter-updates' CalDescent 2022-02-09 19:42:39 +00:00
  • de5f31ac58 Don't process file hashes if we're stopping block-minter-updates CalDescent 2022-02-09 19:40:20 +00:00
  • 214f49e356 Revert "Calculate wallet balances from the transactions (ElectrumX) rather than using bitcoinj." CalDescent 2022-02-08 18:29:32 +00:00
  • d7658ee9f9 Try a lookahead size of 20 (instead of 3) when asking Bitcoinj for the balance. CalDescent 2022-02-08 18:27:44 +00:00
  • 70c864bc2f Removed getWalletTransactions() synchronization. Again, can be re-added later. CalDescent 2022-02-08 18:27:08 +00:00
  • 9804eccbf0 Removed transaction caching. Can be reintroduced later. CalDescent 2022-02-08 18:26:15 +00:00
  • d1f24d45da Added defensiveness in convertToSimpleTransaction() CalDescent 2022-02-08 18:24:42 +00:00
  • 9630625449 Rework of processIncomingTransactionsQueue() so that it no longer holds the lock while processing. CalDescent 2022-02-08 09:18:14 +00:00
  • b72153f62b Renamed main thread from "Controller" to "Qortal" CalDescent 2022-02-08 09:02:20 +00:00
  • 0a88a0c95e Perform the base58 decoding outside of the arbitraryDataFileHashResponses lock, to reduce the amount of waiting around by other threads. CalDescent 2022-02-08 08:45:58 +00:00
  • ab4ba9bb17 Don't re-fetch unconfirmed transactions that are already in the queue CalDescent 2022-02-08 08:36:45 +00:00
  • a49218a840 Optimized ArbitraryDataFileRequestThread - only start a database transaction when there's something to process. CalDescent 2022-02-07 22:06:45 +00:00
  • b6d633ab24 Break out of incoming transactions processing loop if we need to sync. CalDescent 2022-02-07 22:05:13 +00:00
  • 133943cd4e Reduce log spam CalDescent 2022-02-07 22:03:41 +00:00
  • f8ffb1a179 Updated thread names CalDescent 2022-02-07 22:03:26 +00:00
  • 41c4e0c83e Merge branch 'master' into block-minter-updates CalDescent 2022-02-06 18:40:32 +00:00
  • 99f6bb5ac6 Reorganized some controller methods. CalDescent 2022-02-06 18:32:43 +00:00
  • 3e0306f646 Increased minPeerConnectionTime and maxPeerConnectionTime to reduce the chances of forced connections during relays. CalDescent 2022-02-06 17:29:00 +00:00
  • 84e4f9a1c1 Rework of arbitraryRelayMap to keep track of multiple responses. CalDescent 2022-02-06 17:20:01 +00:00
  • cd5ce6dd5e Don't remove from the relay map after a file is requested, as it may be needed by other peers. CalDescent 2022-02-06 16:04:54 +00:00
  • 9ec4e24ef6 Slightly optimized logic in fetchArbitraryDataFiles() CalDescent 2022-02-06 15:45:40 +00:00
  • fa447ccded Builder thread updates. CalDescent 2022-02-06 15:37:21 +00:00
  • ef838627c4 Stop asking for hashes from a peer if one fails. CalDescent 2022-02-06 15:37:08 +00:00
  • b8aaf14cdc Introduced ArbitraryDataFileRequestThread to allow for multiple concurrent file requests. CalDescent 2022-02-06 15:34:06 +00:00
  • 2740543abf Added "async" and "attempts" parameters to GET /arbitrary/{service}/{name}* endpoints. CalDescent 2022-02-06 13:04:58 +00:00
  • 3c526db52e Fixed bug in build manager which would prevent future builds until the core was restarted. CalDescent 2022-02-06 13:03:01 +00:00
  • cfe0414d96 Small rework of invalidUnconfirmedTransactions to specify the expiry time instead of the time added. CalDescent 2022-02-06 12:35:41 +00:00
  • 08e06ba11a Fixed bugs preventing invalidUnconfirmedTransactions from working as intended. CalDescent 2022-02-06 12:09:44 +00:00
  • 8c03164ea5 Don't add expired transactions to invalidUnconfirmedTransactions, as there is no need to keep track of these. CalDescent 2022-02-06 11:55:07 +00:00
  • 0fe2f226bc Added invalidUnconfirmedTransactions map CalDescent 2022-02-06 11:23:28 +00:00
  • 55b5702158 Invalidate last low weight block signature whenever the previous block data changes. CalDescent 2022-01-30 21:00:27 +00:00
  • a4cbbb3868 Moved block minter sleep to later in the process, otherwise it can remain there for longer than expected. CalDescent 2022-01-30 20:37:26 +00:00
  • 816b01c1fc Fixed issue in rebase CalDescent 2022-01-30 20:17:46 +00:00
  • 483e7549f8 Revert "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:16:52 +00:00
  • 60d71863dc Allow 3 seconds for the synchronizer to obtain a blockchain lock, to reduce missed attempts. CalDescent 2022-01-30 17:11:30 +00:00
  • 170244e679 More work on higher weight chain detection in the block minter. CalDescent 2022-01-30 17:04:45 +00:00
  • 472e1da792 Added debug level logging in higherWeightChainExists() for better visibility. CalDescent 2022-01-26 22:34:15 +00:00