This Java package provides the peer synchronization base methods used by NEM nodes, including retrieving information from peer nodes and broadcasting requests received on the node. To deploy a complete node please examine the build script.
The main folders are:
Folder | Content |
---|---|
org.nem.peer.connect |
HTTP connection handling. |
org.nem.peer.services |
Broadcasting, peer list retrieval, blockchain info. |
org.nem.peer.trust |
EigenTrust algorithm implementation. |
The package uses Apache Maven and minimum required Java SDK version to build is Java 11.
Please make sure that the Java version is 11+ by running the following command:
java -version
# openjdk version "11.0.2" 2019-01-15
Then build and install the package as usual:
mvn install
Then check that unit tests are passing by running:
mvn test
Optionally, check if the slower integration tests are passing by running:
mvn failsafe:integration-test
If you want your changes to be considered for inclusion in the repository (see CONTRIBUTING.md), they must addhere to the coding style. You can check that the coding style and format are correct by running:
mvn spotless:check
If there is any problem, you can try to fix it automatically using:
mvn spotless:apply
Before contributing please read the CONTRIBUTING instructions.
- NEM Developer Documentation.
- NEM Technical Reference.
- Join the community Discord server.
- If you found a bug, open a new issue.
Copyright (c) 2014-2021 NEM Contributors, licensed under the MIT license.