Commit Graph

  • a12ae8ad24 Hopeful fix for ConcurrentModificationException in BlockArchiveReader.getFilenameForHeight() CalDescent 2022-03-09 19:46:50 +00:00
  • 498ca29aab Wait until a successful connection with a peer before tracking the direct request. CalDescent 2022-03-08 23:07:08 +00:00
  • ba70e457b6 Default chunk size reduced from 1MB to 0.5MB CalDescent 2022-03-08 22:44:43 +00:00
  • d62808fe1d Don't attempt to create the data directory every time an ArbitraryDataFile instance is instantiated. This was using excessive amounts of CPU and disk I/O. CalDescent 2022-03-08 22:42:07 +00:00
  • 6c14b79dfb Removed bootstrap host that is no longer functional. CalDescent 2022-03-08 22:30:01 +00:00
  • 631a253bcc Added support for dark theme in loading screen. CalDescent 2022-03-08 22:29:37 +00:00
  • 4cb63100d3 Drop the ArbitraryPeers table as it's no longer needed CalDescent 2022-03-06 13:01:09 +00:00
  • 42fcee0cfd Removed all code that interfaced with the ArbitraryPeers table CalDescent 2022-03-06 13:00:11 +00:00
  • 829a2e937b Removed all arbitrary signature broadcasts CalDescent 2022-03-06 12:58:01 +00:00
  • 5d7e5e8e59 Dropped support of ARBITRARY_SIGNATURES message handling, as this feature has been superseded by the peerAddress in file list requests. CalDescent 2022-03-06 12:46:06 +00:00
  • 6f0a0ef324 Small refactor CalDescent 2022-03-06 12:42:19 +00:00
  • f7fe91abeb sendOurOnlineAccountsInfo() moved to its own thread, in preparation for mempow CalDescent 2022-03-06 12:41:54 +00:00
  • 7252e8d160 Deleted presence tests, as they are no longer relevant, and aren't easily adaptable to the new approach. CalDescent 2022-03-06 12:03:18 +00:00
  • 2630c35f8c Chunk validation now uses MAX_CHUNK_SIZE rather than CHUNK_SIZE, to allow for a smaller CHUNK_SIZE value to be optionally used, without failing the validation of existing resources. CalDescent 2022-03-06 11:43:28 +00:00
  • 49f466c073 Added missing break; CalDescent 2022-03-06 11:21:55 +00:00
  • c198f785e6 Added significant CPU optimizations to ArbitraryDataManager CalDescent 2022-03-06 11:21:39 +00:00
  • 5be093dafc Fix for "Synchronizing null%" systray bug introduced in 3.2.0 CalDescent 2022-03-06 11:00:53 +00:00
  • 2c33d5256c Added code accidentally missed out of commit 1b036b7 CalDescent 2022-03-05 20:44:01 +00:00
  • 4448e2b5df Handle case when metadata isn't returned. CalDescent 2022-03-05 17:39:13 +00:00
  • 146d234dec Additional defensiveness in ArbitraryDataFile.fromHash() to avoid similar future bugs. CalDescent 2022-03-05 17:25:48 +00:00
  • 18d5c924e6 Fixed bug cased by fetchAllMetadata() CalDescent 2022-03-05 17:25:14 +00:00
  • b520838195 Increased default maxNetworkThreadPoolSize from 20 to 32 CalDescent 2022-03-05 17:24:55 +00:00
  • 1b036b763c Major CPU optimization to block minter CalDescent 2022-03-05 16:10:43 +00:00
  • 8545a8bf0d Automatically fetch metadata for all resources that have it. CalDescent 2022-03-05 13:00:49 +00:00
  • f0136a5018 Include the external port when responding ArbitraryDataFileListRequests CalDescent 2022-03-05 13:00:17 +00:00
  • 6697b3376b Direct peer connections now use the on-demand data retrieved from file list requests, rather than the stale and incomplete ArbitraryPeerData. CalDescent 2022-03-05 12:59:13 +00:00
  • ea785f79b8 Removed unnecessary synchronization CalDescent 2022-03-04 19:02:30 +00:00
  • 0352a09de7 New online accounts are now verified on the OnlineAccountsManager thread rather than on network threads. This is an attempt to reduce the amount of blocked network threads due to signature verification, and is necessary for the upcoming mempow addition. CalDescent 2022-03-04 17:58:06 +00:00
  • 5b4f15ab2e Transaction importing code moved to TransactionImporter controller class CalDescent 2022-03-04 16:47:21 +00:00
  • fd37c2b76b Moved all online accounts code to a new OnlineAccountsManager controller class CalDescent 2022-03-04 16:24:04 +00:00
  • 924aa05681 Optimized peer lists CalDescent 2022-03-04 15:14:12 +00:00
  • 84b42210f1 Use ArbitraryDataFileRequestThreads only - instead of reusing file list response threads. CalDescent 2022-03-04 13:34:16 +00:00
  • 941080c395 Rework of arbitraryDataFileHashResponses to use a list rather than a map (limited to 1000) items. Sort the list by routes with the lowest number of peer hops first, to try and prioritize those which are easiest and quickest to reach. CalDescent 2022-03-04 13:33:17 +00:00
  • 35d9a10cf4 Avoid logging if there are no remaining transaction signatures to validate. There was too much log spam, none of which was particularly useful. CalDescent 2022-03-04 12:03:58 +00:00
  • 7c181379b4 Added more granularity to logging, to differentiate between signature validation and general processing/importing, as well as showing counts of the transactions being processed in each round. CalDescent 2022-03-04 11:12:23 +00:00
  • f9576d8afb Further optimizations to Controller.processIncomingTransactionsQueue() CalDescent 2022-03-04 11:05:58 +00:00
  • 6a8a113fa1 Merge pull request #74 from catbref/presence-txns-removal CalDescent 2022-03-04 10:33:11 +00:00
  • ef59c34165 Added missing "break" which was causing additional unnecessary debug logging. Originally introduced due to a merge conflict with the metadata branch. CalDescent 2022-03-04 10:28:44 +00:00
  • a19e1f06c0 Merge pull request #73 from catbref/incoming-txns-rework CalDescent 2022-03-04 09:45:29 +00:00
  • a9371f0a90 In Controller.processIncomingTransactionsQueue(), don't bother with 2nd-phase of locking blockchain and importing if there are no valid signature transactions to actually import catbref 2022-03-03 20:32:27 +00:00
  • a7a94e49e8 PRESENCE transactions changed to always fail signature validation catbref 2022-03-03 20:25:58 +00:00
  • affd100298 Reworking of Controller.processIncomingTransactionsQueue() catbref 2022-03-03 20:09:28 +00:00
  • fd6ec301a4 Updated AdvancedInstaller project for v3.2.0 CalDescent 2022-03-03 20:02:30 +00:00
  • 5666e6084b Bump version to 3.2.0 v3.2.0 CalDescent 2022-03-02 20:04:49 +00:00
  • 69309c437e Tightened up the content security policy for non HTML files. CalDescent 2022-03-01 20:36:34 +00:00
  • e392e4d344 Allow eval(), setTimeout(), etc, to enable various QDN sites to function correctly. The existing sandboxing should be locking this down enough already. Limited to .html and .htm files only. CalDescent 2022-03-01 20:35:56 +00:00
  • bd53856927 Disabled auto fetching of metadata. To be re-enabled at a later date. qdn-metadata CalDescent 2022-03-01 20:26:09 +00:00
  • cbd1018ecf Allow identical data to be published if the metadata differs. CalDescent 2022-03-01 20:22:47 +00:00
  • 46606152eb /arbitrary/metadata/* endpoint now returns ArbitraryResourceMetadata rather than a raw JSON string. CalDescent 2022-03-01 20:22:20 +00:00
  • e6f93e0a08 Added categoryName to ArbitraryResourceMetadata, along with the existing category ID CalDescent 2022-03-01 20:19:08 +00:00
  • 8d81f1822f Merge branch 'master' into qdn-metadata CalDescent 2022-02-28 20:10:39 +00:00
  • 5903607363 Merge pull request #72 from catbref/presence-v2 CalDescent 2022-02-27 22:01:59 +00:00
  • 590a8f52db Remove future work comment from Controller catbref 2022-02-27 16:57:26 +00:00
  • ecac47d1bc Also notify TradePresenceWebsocket (using TradePresenceEvent) when bridging old PRESENCE txns catbref 2022-02-26 17:57:47 +00:00
  • 3b477ef637 Fix JAXB marshalling error (duplicate tradeAddress) in TradePresenceWebSocket. No need to send signature. Make sure publicKey is sent in Base58, not Base64. catbref 2022-02-24 17:30:27 +00:00
  • e2ef5b2ef3 Missed change from last commit: incorrect logic in TradePresenceWebSocket catbref 2022-02-24 08:41:41 +00:00
  • 1d59feeb72 Created /websockets/crosschain/tradepresence to replace /websockets/presence catbref 2022-02-23 21:53:48 +00:00
  • c53dd31765 Tidy up of trade presence timestamp generation & checking. Added tests. Renamed "online trades" to "trade presences" catbref 2022-02-23 20:22:01 +00:00
  • 4c02081992 Tidy up TradeBot presence logging. Decorate API endpoints /crosschain/tradeoffers and /crosschain/trade with presence expiry timestamps catbref 2022-02-21 20:05:29 +00:00
  • cb57af3c53 Bugfixes to online trade sigs + bridging from PRESENCE transactions catbref 2022-02-20 17:27:11 +00:00
  • 01d810fc00 Initial effort at migrating PRESENCE transactions to dedicated network messages catbref 2022-02-19 16:05:10 +00:00
  • 8c2a9279ee Return metadata in various /arbitrary APIs if the "includemetadata" parameter is included. CalDescent 2022-02-27 09:09:18 +00:00
  • 0d65448f3d Request all metadata automatically. CalDescent 2022-02-27 08:20:39 +00:00
  • 9da2b3c11a Don't respond to file list requests with just the metadata file. CalDescent 2022-02-27 07:28:11 +00:00
  • 95400da977 Fixed typo in various tests (copy and paste error) CalDescent 2022-02-26 22:10:55 +00:00
  • dc41dc4c69 Tags now use an array of strings, rather than a single string. CalDescent 2022-02-26 22:09:07 +00:00
  • a5c11d4c23 Reduced "Ignoring hash list request" logs from DEBUG to TRACE CalDescent 2022-02-26 16:10:44 +00:00
  • 878394535e Improvements relating to fetching metadata CalDescent 2022-02-26 16:10:26 +00:00
  • 35dba27a55 Fixed issue due to not updating arbitraryMetadataRequests when receiving the metadata file. CalDescent 2022-02-26 16:07:06 +00:00
  • f22ad13fa9 Merge branch 'master' into qdn-metadata CalDescent 2022-02-26 14:39:20 +00:00
  • aa2e5cb87b Merge branch 'hosted-resources-search' CalDescent 2022-02-26 14:05:52 +00:00
  • 7740f3da7e Small formatting tweaks, for consistency with existing code. hosted-resources-search CalDescent 2022-02-26 14:05:28 +00:00
  • badb576991 Fixed exception when identifier is null. Also handling null names as this may be a future scenario. CalDescent 2022-02-26 14:04:35 +00:00
  • c65a63fc7e Fixed "query" parameter error in swagger documentation CalDescent 2022-02-26 13:59:53 +00:00
  • 0111747016 Added debug logging of new file list stats. relay-hops CalDescent 2022-02-25 13:30:07 +00:00
  • eac4b0d87b Maintain backwards support for pre-3.2.0 peers by only including new file list message params when sending to newer peers. CalDescent 2022-02-20 20:11:53 +00:00
  • 3dadce4da4 Renamed a reference CalDescent 2022-02-18 14:17:27 +00:00
  • 1864468818 Prefer the route with the least number of hops when relaying. CalDescent 2022-02-18 13:41:29 +00:00
  • 1a59379162 Optionally include requestTime, requestHops, peerAddress, and isRelayPossible flag in ArbitraryDataFileListMessage CalDescent 2022-02-18 13:25:20 +00:00
  • 31d34c3946 Updated testnet documentation CalDescent 2022-02-25 11:08:37 +00:00
  • 3cc394f02d Merge pull request #70 from catbref/synchronizer-newchaintipevent CalDescent 2022-02-24 20:04:26 +00:00
  • 53c4fe9e80 Fixed another ElectrumX issue found in unit tests. CalDescent 2022-02-24 20:01:56 +00:00
  • d5521068b0 Fixed issue in earlier commit, found in unit tests. CalDescent 2022-02-24 19:45:37 +00:00
  • a63ef4010d Disabled expired transaction data deletion code for now, as this was often causing data to be incorrectly deleted. CalDescent 2022-02-24 19:05:29 +00:00
  • cec3e86eef Merge pull request #71 from catbref/transferprivs-fix CalDescent 2022-02-24 19:02:20 +00:00
  • 8950bb7af9 Very slightly relax validity checks for TRANSFER_PRIVS to allow for skeletal account records, e.g. due to CHAT transactions, but account last reference still needs to be null. Example at block height 736196 / 7 catbref 2022-02-24 09:13:51 +00:00
  • 9e6fe7ceb9 Modify TradeBot, some related websockets, to trigger when chain tip changes instead of with every new block catbref 2022-02-24 09:06:21 +00:00
  • c333d18cd0 Merge branch 'segwit' CalDescent 2022-02-23 20:07:07 +00:00
  • 0271ef69c9 When submitting a new transaction, treat the chain as "synced" if the latest block is less than 30 minutes old. Increased from around 7.5 minutes. CalDescent 2022-02-23 20:06:55 +00:00
  • 2d493a4ea2 Added logging when no addresses are returned for a bitcoiny transaction output. CalDescent 2022-02-23 09:29:16 +00:00
  • e339ab856f Skip over Electrum servers that don't return any output addresses. Hopeful fix for BTC transactions that report a zero value due to incomplete data being returned from certain ElectrumX peers. CalDescent 2022-02-23 08:34:38 +00:00
  • 782904a971 improvement to the search on hosted resources proto 2022-02-22 17:54:08 +01:00
  • a3753c01bc Add search functionality to hosted resources proto 2022-02-22 15:50:46 +01:00
  • d5c3921846 Only show the red "synchronizing" systray icon if the latest block isn't recent. CalDescent 2022-02-21 22:34:13 +00:00
  • a2c462b3da Add <meta charset="UTF-8"> tag to websites. Fixed issue rendering emojis and other special characters. CalDescent 2022-02-21 22:28:59 +00:00
  • 8673c7ef6e Fixed bug in GET /peers/summary API CalDescent 2022-02-21 22:28:18 +00:00
  • 8d7be7757f Fixed incorrectly named tag. CalDescent 2022-02-21 22:27:44 +00:00
  • 6b83927048 Persist MintingAccounts.json on minting accounts add/remove proto 2022-02-21 16:17:17 +01:00
  • e07adbd60e online accounts api call, fix level zero accounts proto 2022-02-21 15:40:10 +01:00
  • bec5b47e43 online accounts api call, fix level zero accounts online-level-zero-accounts-api-call proto 2022-02-21 15:20:19 +01:00