Skip to content

hashgraph/hedera-block-node

hedera-block-node

The block node is a new and unique node designed to consume the blocks streams, maintain state and expose additional targeted value adding APIs to the Hedera community. More details to come as this is work in progress

Support

If you have a question on how to use the product, please see our support guide.

Contributing

Contributions are welcome. Please see the contributing guide to see how you can get involved.

Code of Conduct

This project is governed by the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code of conduct. Please report unacceptable behavior to [email protected].

License

Apache License 2.0

🔐 Security

Please do not file a public ticket mentioning the vulnerability. Refer to the security policy defined in the SECURITY.md.


Usage

Configuration

Environment Variable Description Default Value
PERSISTENCE_STORAGE_ROOT_PATH The root path for the storage, if not provided will attempt to create a data on the working dir of the app.
CONSUMER_TIMEOUT_THRESHOLD_MILLIS Time to wait for subscribers before disconnecting in milliseconds 1500
SERVICE_DELAY_MILLIS Service shutdown delay in milliseconds 500
MEDIATOR_RING_BUFFER_SIZE Size of the ring buffer used by the mediator (must be a power of 2) 67108864
NOTIFIER_RING_BUFFER_SIZE Size of the ring buffer used by the notifier (must be a power of 2) 2048

Starting locally:

./gradlew run

In debug mode, you can attach a debugger to the port 5005.

./gradlew run --debug-jvm

Also you can run on docker locally:

./gradlew startDockerContainer

Running Tests

  1. ./gradlew build

Code Coverage

codecov