Skip to content

Latest commit

 

History

History

peer

NEM Peer

Build Status

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.

Package Organization

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.

Building the package

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

Coding style

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

Contributing

Before contributing please read the CONTRIBUTING instructions.

Getting Help

License

Copyright (c) 2014-2021 NEM Contributors, licensed under the MIT license.