Skip to content

Commit

Permalink
MAIN.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjah committed Jul 22, 2024
1 parent 30e02f7 commit 5427c1e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
![alt text](https://d33wubrfki0l68.cloudfront.net/7df7d7a57a8dda3cc07aab16121b3e3990cf0893/16ccd/portfolio/massa.png)

# Dockerized Massa node #
**Last build for Massa node version MAIN.2.1**
**Last build for Massa node version MAIN.2.3**

## Features
* Easy import your wallet from private key or .yaml file
Expand Down Expand Up @@ -57,6 +57,7 @@ services:
- WALLETPWD=
# use this to import wallet from private key
# - WALLET_PRIVATE_KEY=
- MINIMAL_FEE=0
ports:
- "31244:31244"
- "31245:31245"
Expand All @@ -82,6 +83,7 @@ volumes:
```
#### Available options:
- `MINIMAL_FEE`: Configure the minimal fee to be included in operation. Below this, the node will reject the operation. Massa node default is 0.01MAS
- `DYNIP`: Set to "1" if you host under dynamic public IP. Disabled by default.
- `WALLETPWD`: Password used to encrypt wallet yaml file.
- `WALLET_PRIVATE_KEY`: Optional. Private key to import
Expand Down
Binary file modified bin/toml-cli
Binary file not shown.
Binary file modified bin/toml-cli-arm
Binary file not shown.
2 changes: 1 addition & 1 deletion docker-build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# This builds the image an load it locally. you can build for different architectures with --platform option like linux/amd64,linux/arm/v7,linux/arm64/v8
DOCKER_BUILDKIT=1 docker buildx build --progress=plain --no-cache --platform linux/amd64 -t peterjah/massa-core --load --build-arg VERSION=MAIN.2.1 .
DOCKER_BUILDKIT=1 docker buildx build --progress=plain --no-cache --platform linux/amd64 -t peterjah/massa-core --load --build-arg VERSION=MAIN.2.3 .
2 changes: 1 addition & 1 deletion docker-publish.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# This builds the image for all architectures an publish it on dockerhub
DOCKER_BUILDKIT=1 docker buildx build --platform linux/amd64,linux/arm64/v8 -t peterjah/massa-core --push --build-arg VERSION=MAIN.2.1 .
DOCKER_BUILDKIT=1 docker buildx build --platform linux/amd64,linux/arm64/v8 -t peterjah/massa-core --push --build-arg VERSION=MAIN.2.3 .
7 changes: 7 additions & 0 deletions sources/init_copy_host_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ else
toml set $CONF_FILE execution.hd_cache_path "/massa_mount/storage/cache/rocks_db"
toml set $CONF_FILE ledger.disk_ledger_path "/massa_mount/storage/ledger/rocks_db"

# If MINIMAL_FEE is set, edit the config accordingly
if [ -n "$MINIMAL_FEE" ]
then
green "INFO" "Set minimal fee to $MINIMAL_FEE"
toml set $CONF_FILE pool.minimal_fees "$MINIMAL_FEE"
fi

cp $CONF_FILE node_config_$VERSION.toml
fi

Expand Down

0 comments on commit 5427c1e

Please sign in to comment.