qortal/tools
CalDescent c069c39ce1 Implemented automatic PUT/PATCH detection
When using POST /arbitrary/{service}/{name}... it will now automatically decide which method to use (PUT/PATCH) based on a few factors:

- If there are already 10 or more layers, use PUT to reset back to a single layer
- If the next layer's patch is more than 20% of the total resource file size, use PUT
- If the next layer modifies more than 50% of the total file count, use PUT
- Otherwise, use PATCH

The PUT method causes a new base layer to be created and all previous update history for that resource becomes obsolete. The PATCH method adds a small delta layer on top of the existing layer(s).

The idea is to wipe the slate clean with a new base layer once the patches start to get demanding for the network to apply. Nodes which view the content will ultimately have build timeouts to prevent someone from deploying a resource with hundreds of complex layers for example, so this approach is there to maximize the chances of the resource being buildable.

The constants above (10 layers, 20% total size, 50% file count) will most likely need tweaking once we have some real world data.
2021-11-13 09:56:13 +00:00
..
approve-auto-update.sh Update auto-update tools to work with testnet and on non-master branch (e.g. a testnet branch) 2020-05-27 11:49:59 +01:00
block-timings.sh Include timestamps in block-timings.sh 2021-06-09 13:04:49 +01:00
build-auto-update.sh Improve tools/build-auto-update.sh when working on detached HEAD 2020-10-28 09:08:16 +00:00
build-keystore.sh Add support for HTTPS for API 2020-06-23 14:27:40 +01:00
build-release.sh Removed version number from qortal.exe and qortal.zip 2021-07-18 10:36:04 +01:00
build-zip.sh Removed version number from qortal.exe and qortal.zip 2021-07-18 10:36:04 +01:00
peer-heights Added some more useful tools/scripts, mostly for Linux-based curious node owners 2020-07-17 12:22:48 +01:00
publish-auto-update.pl Show an error in publish-auto-update.pl if both sha256sum and sha256 aren't found in PATH. 2021-04-01 08:27:56 +01:00
qdata Implemented automatic PUT/PATCH detection 2021-11-13 09:56:13 +00:00
qort Added some more useful tools/scripts, mostly for Linux-based curious node owners 2020-07-17 12:22:48 +01:00
tx.pl Added some more useful tools/scripts, mostly for Linux-based curious node owners 2020-07-17 12:22:48 +01:00