Waves Node

Mar 21, 2022 | Blockchain

Checks status Downloads Docker pulls

Twitter: Waves Tech Medium: Waves Tech Telegram Awesome Waves

Waves is an open source blockchain protocol. You can use it to build your own decentralized applications. Waves provides full blockchain ecosystem including smart contracts language called RIDE.

Demo

Waves Node Run Demo

Waves Node Functions

The Waves Node plays a crucial role in the ecosystem. It carries out the following functions:

Learn more about Waves Node in the documentation.

Getting Started

Here’s a quick guide to get your Waves Node running:

Prerequisites:

  • Configuration file for your desired network from here.
  • waves-all*.jar file from releases.

Installation Instructions:

For Linux:

sudo apt-get update
sudo apt-get install openjdk-11-jre
java -jar nodetargetwaves-all*.jar pathtoconfigwaves-network.conf

For Mac:

brew cask install adoptopenjdk
openjdk11
java -jar nodetargetwaves-all*.jar pathtoconfigwaves-network.conf

For Windows:

java -jar nodetargetwaves-all*.jar pathtoconfigwaves-network.conf

If you are using Docker, follow the official image documentation. For more details on installation for different platforms, refer to the documentation.

Configuration

To customize your Waves Node, start by understanding the available configuration parameters in this article. Default configuration files for different networks can be found in network-defaults.conf. For logging configuration, check here.

Development

The node can be built and installed on any Java-compatible platform. Follow these steps to build and test:

  1. Set up the environment.
    • Install Java:
    • sudo apt-get update
      sudo apt-get install openjdk-11-jre  # Ubuntu
      # or 
      brew cask install adoptopenjdk
      openjdk/adoptopenjdk11
    • Install SBT (Scala Build Tool): Follow the SBT installation instructions by visiting [Linux](https://www.scala-sbt.org/1.0/docs/Installing-sbt-on-Linux.html), [Mac](https://www.scala-sbt.org/1.0/docs/Installing-sbt-on-Mac.html), [Windows](https://www.scala-sbt.org/1.0/docs/Installing-sbt-on-Windows.html).
  2. Clone the repository:
    git clone https://github.com/wavesplatform/Waves.git
    cd Waves
  3. Compile and run tests:
    sbt checkPR
  4. Run integration tests (optional):
    sbt node-itdocker-
  5. Build packages:
    sbt packageAll                   # Mainnet
    sbt -Dnetwork=testnet packageAll # Testnet
    sbt packageAll produces only deb package along with a fat jar.
  6. Install DEB package (located in target folder):
    sudo dpkg -i nodetarget*.deb
  7. Run an extension project locally during development (optional):
    sbt extension-module run pathtoconfiguration
  8. Configure IntelliJ IDEA (optional):
    1. Click Add configuration.
    2. Click + to add a new configuration, choose Application.
    3. Specify the following:
      • Main class: com.wavesplatform.Application
      • Program arguments: pathtoconfiguration
      • Use classpath of module: extension-module
    4. Click OK and run this configuration.

Contributing

If you’d like to contribute, fork the repository and use a feature branch. Pull requests are warmly welcomed. Please make sure to update tests as appropriate and follow the code of conduct during communication.

ℹ Support (Get Help)

Keep up with the latest news and articles, and find out all about events happening on the Waves Protocol.

Links

Licence

The code in this project is licensed under MIT license.

Acknowledgements

YourKit LogoWe use YourKit full-featured Java Profiler to make Waves Node faster.

At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Troubleshooting

If you encounter issues during setup or operation, here are some tips:

  • Ensure that you have the correct version of Java installed. Java 11 is required for running the Waves Node.
  • Check the configuration files for syntax errors or incorrect paths.
  • Refer to the troubleshooting section of the Waves documentation for more specific error messages and solutions.

For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox