From 277cb50c0022e44cc825b72bd090951d545796ee Mon Sep 17 00:00:00 2001 From: h0ngcha0 Date: Fri, 12 Jan 2024 20:50:46 +0100 Subject: [PATCH 1/3] Add guide for using docker for pruning --- docs/full-node/full-node-more.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/full-node/full-node-more.md b/docs/full-node/full-node-more.md index 11b80f4d..c8b808f4 100644 --- a/docs/full-node/full-node-more.md +++ b/docs/full-node/full-node-more.md @@ -104,9 +104,18 @@ requirement. Here are the steps to prune the Alephium full node: +### Using Jar File + 1. Make sure the Alephium full node is stopped 2. Download `alephium-tools-2.6.1.jar` from https://github.com/alephium/alephium/releases/tag/v2.6.1 3. If you changed the default Alephium home directory, set the the `ALEPHIUM_HOME` environment variable 4. Run the following command `java -cp alephium-tools-2.6.1.jar org.alephium.tools.PruneStorage` to start pruning 5. Wait until the command finishes execution, the disk space should be reduced to around 20 GB 6. Restart the Alephium full node + +### Using Docker + +1. Make sure the Alephium full node is stopped +2. Run the following command `docker run -it -v ${YOUR_ALEPHIUM_HOME}:/alephium-home/.alephium alephium/alephium-tools:2.6.1 org.alephium.tools.PruneStorage` +3. Wait until the command finishes execution, the disk space should be reduced to around 20 GB +4. Restart the Alephium full node \ No newline at end of file From b72949f75d3127cc6aef1431b39f2e471de6f2c4 Mon Sep 17 00:00:00 2001 From: Cheng Wang Date: Sat, 3 Feb 2024 11:22:56 +0100 Subject: [PATCH 2/3] Update version numbers --- docs/full-node/full-node-more.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/full-node/full-node-more.md b/docs/full-node/full-node-more.md index c8b808f4..a45c59a3 100644 --- a/docs/full-node/full-node-more.md +++ b/docs/full-node/full-node-more.md @@ -107,15 +107,15 @@ Here are the steps to prune the Alephium full node: ### Using Jar File 1. Make sure the Alephium full node is stopped -2. Download `alephium-tools-2.6.1.jar` from https://github.com/alephium/alephium/releases/tag/v2.6.1 +2. Download `alephium-tools-x.y.z.jar` from https://github.com/alephium/alephium/releases 3. If you changed the default Alephium home directory, set the the `ALEPHIUM_HOME` environment variable -4. Run the following command `java -cp alephium-tools-2.6.1.jar org.alephium.tools.PruneStorage` to start pruning +4. Run the following command `java -cp alephium-tools-x.y.z.jar org.alephium.tools.PruneStorage` to start pruning 5. Wait until the command finishes execution, the disk space should be reduced to around 20 GB 6. Restart the Alephium full node ### Using Docker 1. Make sure the Alephium full node is stopped -2. Run the following command `docker run -it -v ${YOUR_ALEPHIUM_HOME}:/alephium-home/.alephium alephium/alephium-tools:2.6.1 org.alephium.tools.PruneStorage` +2. Run the following command `docker run -it -v ${YOUR_ALEPHIUM_HOME}:/alephium-home/.alephium alephium/alephium-tools:x.y.z org.alephium.tools.PruneStorage` 3. Wait until the command finishes execution, the disk space should be reduced to around 20 GB -4. Restart the Alephium full node \ No newline at end of file +4. Restart the Alephium full node From 75f002e311149e0b306fa0e898a9d710cb891499 Mon Sep 17 00:00:00 2001 From: Cheng Wang Date: Sat, 3 Feb 2024 11:24:14 +0100 Subject: [PATCH 3/3] Update built-in functions --- docs/ralph/built-in-functions.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/ralph/built-in-functions.md b/docs/ralph/built-in-functions.md index 0a39f1a5..c403ae34 100644 --- a/docs/ralph/built-in-functions.md +++ b/docs/ralph/built-in-functions.md @@ -166,6 +166,20 @@ Returns the id of the contract --- +### contractAddress + +```Rust +fn contractAddress!(contract:) -> (Address) +``` + +Returns the address of the contract + +> @param **contract** *the contract variable* +> +> @returns *the address of the contract* + +--- + ### callerContractId ```Rust @@ -1268,11 +1282,11 @@ Encodes inputs as big-endian ByteVec. fn blake2b!(data:ByteVec) -> (ByteVec) ``` -Computes the Blake2b hash of the input. +Computes the Blake2b-256 hash of the input. > @param **data** *the input data to be hashed* > -> @returns *the hash result* +> @returns *the 32 bytes hash result* ---