Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 38c0ca0

Browse files
authored
Merge pull request #163 from HelixNetwork/dev
0.6.7
2 parents af0f91c + 3009f00 commit 38c0ca0

8 files changed

Lines changed: 30 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.6.7
2+
- Fixed #142 Negative value for address detected in the running testnet
3+
14
## 0.6.6
25
- Fixed RVM.getRandomMilestone: returns null if round has empty set
36
- Fixed for RVM.delete: if round is deleted from DB, it's removed from cache

DOCKER.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The provided dockerfile only contains the bare minimum of configuration paramete
1515
2. build: installs Maven on top of the java stage and compiles Helix
1616
3. final container: copies the helix jar file using the java stage as base
1717

18-
The built container assumes the WORKDIR inside the container is /helix/data: this means that the database directory will be written inside that directory by default. If a system administrator wants to retain the database across restarts, it is his/her job to mount a docker volume in the right folder
18+
The built container assumes the WORKDIR inside the container is `/pendulum/data`: this means that the database directory will be written inside that directory by default. If a system administrator wants to retain the database across restarts, it is his/her job to mount a docker volume in the right folder
1919

2020
## Getting Started
2121

@@ -41,10 +41,10 @@ You can also pass more command line options to the docker run command and those
4141

4242
### Load options from INI
4343

44-
If you want to use a `<conf_name>`.ini file with the docker container, supposing it's stored under /path/to/conf/`<conf_name>`.ini on your docker host, then pass -v /path/to/conf:/helix/conf and add -c /helix/conf/`<conf_name>`.ini as docker run arguments. So for example the docker run command above would become:
44+
If you want to use a `<conf_name>`.ini file with the docker container, supposing it's stored under /path/to/conf/`<conf_name>`.ini on your docker host, then pass -v /path/to/conf:/pendulum/conf and add -c /pendulum/conf/`<conf_name>`.ini as docker run arguments. So for example the docker run command above would become:
4545

4646
```shell
47-
docker run -v /path/to/conf:/helix/conf -v /path/to/data:/helix/data helixnetwork/helix:latest -p 8085 -c /helix/conf/<conf_name>.ini
47+
docker run -v /path/to/conf:/pendulum/conf -v /path/to/data:/helix/data helixnetwork/node:latest -p 8085 -c /pendulum/conf/<conf_name>.ini
4848
```
4949

5050
## Security

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ FROM helixnetwork/base16.04:latest as builder
22
LABEL maintainer="dt@hlx.ai"
33

44
WORKDIR /pendulum
5-
COPY . /pendulum
5+
# cache all deps Maven
6+
COPY pom.xml .
7+
RUN mvn dependency:go-offline
8+
9+
# copy src files only for better caching
10+
COPY checkstyle.xml .
11+
COPY ./src /pendulum/src
612
RUN mvn clean package
713

814
FROM openjdk:jre-slim
@@ -50,4 +56,4 @@ ENV JAVA_OPTIONS="-XX:+UnlockExperimentalVMOptions -XX:+DisableAttachMechanism -
5056
DOCKER_JAVA_NET_PREFER_IPV4_STACK=true
5157

5258
WORKDIR /pendulum/data
53-
ENTRYPOINT [ "/entrypoint.sh" ]
59+
ENTRYPOINT [ "/entrypoint.sh" ]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Pendulum
66

77
Pendulum is a quorum based [Tangle](https://github.com/iotaledger/iri/) implementation designed towards reliable timekeeping and messaging.
8-
- **Latest release:** 0.6.6 pre-release
8+
- **Latest release:** 0.6.7 pre-release
99
- **License:** GPLv3
1010

1111
Special thanks to all of the [IOTA Contributors](https://github.com/iotaledger/iri/graphs/contributors)!

docker/entrypoint.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/bash
22
# See Dockerfile and DOCKER.md for further info
33

4-
if [ "${DOCKER_HLX_MONITORING_API_PORT_ENABLE}" == "1" ]; then
5-
nohup socat -lm TCP-LISTEN:8086,fork TCP:127.0.0.1:${DOCKER_HLX_MONITORING_API_PORT_DESTINATION} &
4+
if [ "${DOCKER_PLM_MONITORING_API_PORT_ENABLE}" == "1" ]; then
5+
nohup socat -lm TCP-LISTEN:8086,fork TCP:127.0.0.1:${DOCKER_PLM_MONITORING_API_PORT_DESTINATION} &
66
fi
77

8-
HLX_JAR_FILE=$(find "$DOCKER_HLX_JAR_PATH" -type f -name "$DOCKER_HLX_JAR_FILE" -print -quit)
9-
if [[ "${HLX_JAR_FILE}x" == "x" ]]
8+
PLM_JAR_FILE=$(find "$DOCKER_PLM_JAR_PATH" -type f -name "$DOCKER_PLM_JAR_FILE" -print -quit)
9+
if [[ "${PLM_JAR_FILE}x" == "x" ]]
1010
then
11-
>&2 echo "ERROR: File '$DOCKER_HLX_JAR_FILE' not found in path '$DOCKER_HLX_JAR_PATH'"
11+
>&2 echo "ERROR: File '$DOCKER_PLM_JAR_FILE' not found in path '$DOCKER_PLM_JAR_PATH'"
1212
exit 1
1313
fi
1414

@@ -17,7 +17,7 @@ exec java \
1717
-Xms$JAVA_MIN_MEMORY \
1818
-Xmx$JAVA_MAX_MEMORY \
1919
-Djava.net.preferIPv4Stack="$DOCKER_JAVA_NET_PREFER_IPV4_STACK" \
20-
-DLogging-Level="$DOCKER_HLX_LOGGING_LEVEL" \
21-
-jar "$HLX_JAR_FILE" \
22-
--remote "$DOCKER_HLX_REMOTE" --remote-limit-api "$DOCKER_HLX_REMOTE_LIMIT_API" \
23-
"$@"
20+
-DLogging-Level="$DOCKER_PLM_LOGGING_LEVEL" \
21+
-jar "$PLM_JAR_FILE" \
22+
--remote "$DOCKER_PLM_REMOTE" --remote-limit-api "$DOCKER_PLM_REMOTE_LIMIT_API" \
23+
"$@"

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>net.pendulum</groupId>
77
<artifactId>pendulum</artifactId>
88

9-
<version>0.6.6</version>
9+
<version>0.6.7</version>
1010

1111
<name>Pendulum</name>
1212
<description>Pendulum Protocol</description>

src/main/java/net/helix/pendulum/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class Main {
4545

4646
public static final String MAINNET_NAME = "Pendulum";
4747
public static final String TESTNET_NAME = "Pendulum Testnet";
48-
public static final String VERSION = "0.6.6";
48+
public static final String VERSION = "0.6.7";
4949

5050
/**
5151
* The entry point of Pendulum.

src/main/java/net/helix/pendulum/service/API.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,9 @@ private List<Hash> getConfirmedTips() throws Exception {
15921592
BundleValidator.validate(tangle, snapshotProvider.getInitialSnapshot(), txVM.getHash()).size() != 0) {
15931593
if (walkValidator.isValid(transaction)) {
15941594
confirmedTips.add(transaction);
1595+
} else {
1596+
log.warn("Inconsistent transaction has been removed from tips: " + transaction.toString());
1597+
tipsViewModel.removeTipHash(transaction);
15951598
}
15961599
}
15971600
}
@@ -1769,7 +1772,7 @@ private Function<Map<String, Object>, AbstractResponse> storeTransactions() {
17691772
storeTransactionsStatement(txString);
17701773
} catch (Exception e) {
17711774
//transaction not valid
1772-
return ErrorResponse.create("Invalid bytes input");
1775+
return ErrorResponse.create("Invalid bytes input. " + e.getMessage());
17731776
}
17741777
return AbstractResponse.createEmptyResponse();
17751778
};

0 commit comments

Comments
 (0)