Skip to content

Commit

Permalink
Merge pull request #288 from alephium/add-pruning-instruction-using-d…
Browse files Browse the repository at this point in the history
…ocker

Add Pruning Instruction using Docker
  • Loading branch information
polarker authored Feb 3, 2024
2 parents c812cec + 75f002e commit bb46eef
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/full-node/full-node-more.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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: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
14 changes: 14 additions & 0 deletions docs/ralph/built-in-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,20 @@ Returns the id of the contract
---

### contractAddress

```Rust
fn contractAddress!(contract:<Contract>) -> (Address)
```

Returns the address of the contract

> @param **contract** *the contract variable*
>
> @returns *the address of the contract*
---

### callerContractId

```Rust
Expand Down

0 comments on commit bb46eef

Please sign in to comment.