CalDescent
45bc2e46d6
Improved metadata trimming, to better handle multibyte UTF-8 characters.
2023-04-28 12:48:38 +01:00
CalDescent
e80494b784
Fixed unit test.
2023-04-21 20:22:18 +01:00
8ca9423c52
Added missing parameter to test
2023-04-21 10:58:09 -04:00
CalDescent
dc25d33739
Merge branch 'master' into q-apps
2023-04-19 20:57:31 +01:00
CalDescent
e041748b48
Improved name rebuilding code, to handle some more complex scenarios.
2023-04-16 13:59:25 +01:00
CalDescent
35def54ecc
Added support for multiple block/follow lists.
...
Any list with the following prefix will be used in block/follow logic:
blockedNames
blockedAddresses
followedNames
For instance, any names in a list named "blockedNames_CustomBlockList" would also be blocked, along with those in the standard "blockedNames" list.
This will ultimately allow apps to offer custom block/follow lists to users (once list functionality is added to the Q-Apps API).
2023-04-02 14:42:49 +01:00
CalDescent
2086a2c476
Moved block/follow utility methods to a new ListUtils class
2023-04-02 10:58:16 +01:00
CalDescent
a83e332c11
Major upgrade of arbitrary data functionality, to support on-chain data for small payloads.
...
Max size for on-chain data is 239 bytes, due to 16-byte IV. Must be a single file resource, without .qortal folder.
2023-03-31 15:53:08 +01:00
CalDescent
ea6225ab9a
Include "mimeType" in metadata for single file resources (but only when a metadata file would have otherwise been created).
2023-03-19 16:27:57 +00:00
CalDescent
73a7c1fe7e
More improvements to Service handling.
2023-03-19 10:18:13 +00:00
CalDescent
2848ae695c
More improvements to Service handling.
2023-03-19 10:17:56 +00:00
CalDescent
a555f503eb
Treat service as an int in ArbitraryTransactionData
2023-03-18 10:41:53 +00:00
CalDescent
2bee3cbb5c
Treat service as an int in ArbitraryTransactionData
2023-03-18 10:40:27 +00:00
CalDescent
98b0b1932d
Merge branch 'master' into q-apps
2023-03-17 13:17:47 +00:00
CalDescent
edae7fd844
Added optional "encoding" query string param for various chat APIs and websockets, as base58 is too slow for the amount of data it is now processing.
...
Usage:
Add `encoding=BASE64` query string parameter to opt in to base64 encoding of returned chat data. Defaults to BASE58 for backwards support.
Compatible endpoints:
GET /chat/messages
GET /chat/message/{signature}
GET /chat/active/{address}
GET /websockets/chat/active/*
GET /websockets/chat/messages
2023-03-17 12:46:14 +00:00
CalDescent
b5ce8d5fb3
Merge branch 'master' into q-apps
...
# Conflicts:
# src/main/java/org/qortal/api/resource/ArbitraryResource.java
2023-03-10 14:03:08 +00:00
CalDescent
4afbca7ed2
Merge branch 'rebuild-archive'
2023-03-10 11:50:09 +00:00
CalDescent
b1452bddf3
Added BlockArchiveV2 tests, and updated the V1 tests now that we no longer support bulk archiving/pruning
2023-03-06 17:17:55 +00:00
CalDescent
3739920ad3
Added support for an optional fee in arbitrary transactions, to give the option for data to be published instantly (i.e. no proof of work / mempow required when fee is sufficient).
...
Takes effect at a future undecided timestamp.
2023-03-06 13:17:48 +00:00
CalDescent
d6ab9eb066
Rework of service validation, to allow a service to be specified as a single file resource.
...
This removes some complexity and duplication from custom validation functions. Q-Chat QDN functionality will need a re-test.
2023-03-05 11:39:53 +00:00
CalDescent
ac60ef30a3
Added JSON service, with a maximum size of 25KB, and a requirement that the data must be valid JSON.
2023-03-05 10:51:26 +00:00
CalDescent
64cd21b0dd
Merge branch 'master' into q-apps
2023-02-28 22:03:19 +00:00
CalDescent
ba9f3b335c
Added unit test to reproduce the UPDATE_NAME issue and prove that the fix is working correctly.
2023-02-22 18:59:43 +00:00
CalDescent
830bae3dc1
Merge branch 'at-states-fix'
...
# Conflicts:
# src/main/java/org/qortal/controller/repository/AtStatesPruner.java
# src/main/java/org/qortal/controller/repository/AtStatesTrimmer.java
2023-02-10 17:45:22 +00:00
CalDescent
ca09dd264f
Merge branch 'master' into q-apps
2023-01-28 20:14:35 +00:00
CalDescent
ae44065d7e
Fixed issue with CancelSellName transactions.
2023-01-27 19:34:23 +00:00
CalDescent
8dffe1e3ac
Another rewrite of Q-App APIs, which removes the /apps/* redirects and instead calls the main APIs directly.
...
- All APIs are now served over the gateway and domain map, with the exception of /admin/*
- AdminResource moved to a "restricted" folder, so that it isn't served over the gateway/domainMap ports.
- This opens the door to websites/apps calling core APIs directly for certain read-only functions, as an alternative to using qortalRequest().
2023-01-22 18:59:46 +00:00
CalDescent
1d568fa462
Return file lists via /arbitrary/metadata/* endpoints, but exclude it from /arbitrary/resources/* endpoints.
2023-01-22 16:29:23 +00:00
CalDescent
328ba48224
Merge branch 'master' into qdn-file-list
2023-01-22 16:12:54 +00:00
CalDescent
1f7fec6251
Exclude .qortal directory in validation functions, as it was incorrectly failing with "DIRECTORIES_NOT_ALLOWED".
2023-01-20 10:40:20 +00:00
CalDescent
e31515b4a2
Fixed bugs preventing single file GIF repositories and QCHAT attachments from passing validation.
2023-01-20 10:14:42 +00:00
CalDescent
8ad46b6344
Fixed/removed incorrect comments
2023-01-20 09:58:28 +00:00
CalDescent
64529e8abf
Added "reverse" and "includeOnlineSignatures" params to GET /blocks/range/{height}
endpoint.
2023-01-18 19:04:54 +00:00
CalDescent
bd4c47dba6
Rework of AT state trimming and pruning, in order to more reliably track the "latest" AT states.
...
This should fix an edge case where AT states data was pruned/trimmed but it was then later required in consensus. The older state was deleted because it was replaced by a new "latest" state in a brand new block. But once the new "latest" state was orphaned from the block, the old "latest" state was then required again.
This works around the problem by excluding very recent blocks in the latest AT states data, so that it is unaffected by real-time sync activity.
The trade off is that we could end up retaining more AT states than needed, so a secondary cleanup process may need to run at some time in the future to remove these. But it should only be a minimal amount of data, and can be cleaned up with a single query. This would have been happening to a certain degree already.
2023-01-15 14:32:33 +00:00
CalDescent
476fdcb31d
Added serialization tests for chatReference, and grouped with other serialization tests into a single package.
2023-01-14 10:38:50 +00:00
CalDescent
0ad9e2f65b
Added QCHAT_ATTACHMENT service, with custom validation function.
2023-01-13 20:08:47 +00:00
CalDescent
4dc0033a5a
Added missing chatReferenceTimestamp in unit tests.
2023-01-13 19:45:52 +00:00
CalDescent
6284a4691c
Import test transactions as part of the serialization tests, to catch any issues with db schema data lengths.
2023-01-13 19:28:44 +00:00
CalDescent
41f88be55e
Test serialization of CHAT transactions
2023-01-13 19:27:38 +00:00
CalDescent
8e97c05b56
Added missing feature trigger from unit tests.
2023-01-13 19:25:06 +00:00
CalDescent
cecf28ab7b
Merge branch 'chat-reference'
...
# Conflicts:
# src/main/java/org/qortal/block/BlockChain.java
# src/main/java/org/qortal/repository/hsqldb/HSQLDBDatabaseUpdates.java
# src/main/resources/blockchain.json
# src/test/resources/test-chain-v2-block-timestamps.json
# src/test/resources/test-chain-v2-disable-reference.json
# src/test/resources/test-chain-v2-founder-rewards.json
# src/test/resources/test-chain-v2-leftover-reward.json
# src/test/resources/test-chain-v2-minting.json
# src/test/resources/test-chain-v2-qora-holder-extremes.json
# src/test/resources/test-chain-v2-qora-holder-reduction.json
# src/test/resources/test-chain-v2-qora-holder.json
# src/test/resources/test-chain-v2-reward-levels.json
# src/test/resources/test-chain-v2-reward-scaling.json
# src/test/resources/test-chain-v2-reward-shares.json
# src/test/resources/test-chain-v2.json
2023-01-02 17:32:38 +00:00
CalDescent
e40dc4af59
Fixed group ban expiry.
2022-12-22 14:16:57 +00:00
CalDescent
e678ea22e0
Fixed NPE in unit tests. Still need to work out how/when this was introduced.
2022-12-18 18:33:51 +00:00
CalDescent
cf3195cb83
Set "minAccountsToActivateShareBin" to 0 for certain tests.
2022-12-18 18:32:06 +00:00
CalDescent
80048208d1
Moved some test sponsorship utility methods to AccountUtils, so they can be used in other test classes too.
2022-12-15 12:14:42 +00:00
CalDescent
c108afa27c
Self sponsorship algo tests
2022-12-04 20:57:36 +00:00
CalDescent
2b6ae57a27
Merge branch 'master' into chat-reference
...
# Conflicts:
# src/main/java/org/qortal/block/BlockChain.java
# src/main/resources/blockchain.json
# src/test/resources/test-chain-v2-block-timestamps.json
# src/test/resources/test-chain-v2-disable-reference.json
# src/test/resources/test-chain-v2-founder-rewards.json
# src/test/resources/test-chain-v2-leftover-reward.json
# src/test/resources/test-chain-v2-minting.json
# src/test/resources/test-chain-v2-qora-holder-extremes.json
# src/test/resources/test-chain-v2-qora-holder-reduction.json
# src/test/resources/test-chain-v2-qora-holder.json
# src/test/resources/test-chain-v2-reward-levels.json
# src/test/resources/test-chain-v2-reward-scaling.json
# src/test/resources/test-chain-v2-reward-shares.json
# src/test/resources/test-chain-v2.json
2022-11-27 20:06:55 +00:00
CalDescent
76686eca21
Modified reward share creation in test/common/AccountUtils to allow a fee to be specified.
2022-11-27 12:23:17 +00:00
CalDescent
58e5d325ff
Added algo feature triggers to BlockChain.java (at future undecided block height & timestamp)
2022-11-26 16:10:18 +00:00
CalDescent
9c3a4d6e37
BlockChain.java additions for onlineAccountMinterLevelValidationHeight, which were missing from commit 68a0923
2022-11-26 11:55:27 +00:00