Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ version: "3"
vars:
APP_NAME: node-manager-plugin
BIN_DIR: build
MAINNET_VERSION: "MAIN.4.2"
BUILDNET_VERSION: "DEVN.29.2"
MAINNET_VERSION: "MAIN.5.0"
BUILDNET_VERSION: "DEVN.30.0"
NODE_MASSA_DIR: "build/node-massa"

tasks:
Expand Down
4 changes: 2 additions & 2 deletions int/config/plugin_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ func init() {
PwdBuildnet: "",
AutoRestart: false,
IsMainnet: true,
MainnetVersion: "MAIN.4.2",
BuildnetVersion: "DEVN.29.2",
MainnetVersion: "MAIN.5.0",
BuildnetVersion: "DEVN.30.0",
}
}

Expand Down
12 changes: 6 additions & 6 deletions int/config/plugin_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ func TestRemoveOldNodeVersionsArtifacts(t *testing.T) {

// Prepare plugin info with current versions
pi := &PluginInfo{
MainnetVersion: "MAIN.4.2",
BuildnetVersion: "DEVN.29.2",
MainnetVersion: "MAIN.5.0",
BuildnetVersion: "DEVN.30.0",
}

// Create directories representing versions
mustMkdir(t, filepath.Join(root, "MAIN.4.2")) // should stay
mustMkdir(t, filepath.Join(root, "DEVN.29.2")) // should stay
mustMkdir(t, filepath.Join(root, "MAIN.5.0")) // should stay
mustMkdir(t, filepath.Join(root, "DEVN.30.0")) // should stay
mustMkdir(t, filepath.Join(root, "MAIN.3.0")) // should be removed
mustMkdir(t, filepath.Join(root, "DEVN.28.16")) // should be removed
mustMkdir(t, filepath.Join(root, "random-other")) // should be removed
Expand All @@ -34,8 +34,8 @@ func TestRemoveOldNodeVersionsArtifacts(t *testing.T) {
}

// Assert expected directories
assertExists(t, filepath.Join(root, "MAIN.4.2"), true)
assertExists(t, filepath.Join(root, "DEVN.29.2"), true)
assertExists(t, filepath.Join(root, "MAIN.5.0"), true)
assertExists(t, filepath.Join(root, "DEVN.30.0"), true)
assertExists(t, filepath.Join(root, "MAIN.3.0"), false)
assertExists(t, filepath.Join(root, "DEVN.28.16"), false)
assertExists(t, filepath.Join(root, "random-other"), false)
Expand Down
3 changes: 2 additions & 1 deletion int/node-api/node-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ func (n *nodeAPI) GetAddresses(addresses []string) ([]byte, error) {
RPCresponse, err := n.nodeClient.RPCClient.Call(
context.Background(),
"get_addresses",
[1][]string{addresses})
[1][]string{addresses},
)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"description": "Massa blockchain official node manager",
"logo": "favicon.svg",
"home": "",
"version": "0.4.5",
"version": "0.4.6",
"apispec": ""
}
4 changes: 2 additions & 2 deletions scripts/setup-node-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
# Should be called by taskfile.
#
# Usage: ./setup-node-unix.sh <MAINNET_VERSION> <BUILDNET_VERSION> <MAINNET_NODEBIN> <BUILDNET_NODEBIN> <NODE_MASSA_DIR>
# Example: ./setup-node-unix.sh "MAIN.4.2" "DEVN.29.2" "massa_MAIN.4.2_release_linux.tar.gz" "massa_DEVN.29.2_release_linux.tar.gz" "build/node-massa"
# Example: ./setup-node-unix.sh "MAIN.5.0" "DEVN.30.0" "massa_MAIN.5.0_release_linux.tar.gz" "massa_DEVN.30.0_release_linux.tar.gz" "build/node-massa"

set -e # Exit on any error

# Check if correct number of parameters provided
if [ $# -ne 5 ]; then
echo "Error: This script requires exactly 5 parameters"
echo "Usage: $0 <MAINNET_VERSION> <BUILDNET_VERSION> <MAINNET_NODEBIN> <BUILDNET_NODEBIN> <NODE_MASSA_DIR>"
echo "Example: $0 \"MAIN.4.2\" \"DEVN.29.2\" \"massa_MAIN.4.2_release_linux.tar.gz\" \"massa_DEVN.29.2_release_linux.tar.gz\" \"build/node-massa\""
echo "Example: $0 \"MAIN.5.0\" \"DEVN.30.0\" \"massa_MAIN.5.0_release_linux.tar.gz\" \"massa_DEVN.30.0_release_linux.tar.gz\" \"build/node-massa\""
exit 1
fi

Expand Down
Loading
Loading