933 releases (79 breaking)
0.112.6 | Nov 27, 2024 |
---|---|
0.112.2 | Oct 29, 2024 |
0.110.0 | Jul 29, 2024 |
0.105.3 | Mar 28, 2024 |
0.25.18 | Dec 21, 2020 |
#720 in Network programming
630 downloads per month
Used in sn_node_rpc_client
1.5MB
23K
SLoC
Safe Network Node (sn_node)
Overview
The sn_node
directory provides the safenode
binary, which is the node implementation for the Safe Network. This directory contains the core logic for node operations, including API definitions, error handling, event management, and data validation.
Table of Contents
Installation
Follow the main project's installation guide to set up the safenode
binary.
Usage
To run the safenode
binary, follow the instructions in the main project's usage guide.
Directory Structure
src/
: Source code filesapi.rs
: API definitionserror.rs
: Error types and handlingevent.rs
: Event-related logicget_validation.rs
: Validation for GET requestsput_validation.rs
: Validation for PUT requestsreplication.rs
: Data replication logicspends.rs
: Logic related to spending tokens or resources
tests/
: Test filescommon/mod.rs
: Common utilities for testsdata_with_churn.rs
: Tests related to data with churnsequential_transfers.rs
: Tests for sequential data transfersstorage_payments.rs
: Tests related to storage paymentsverify_data_location.rs
: Tests for verifying data locations
Testing
To run tests, navigate to the sn_node
directory and execute:
cargo test
Contributing
Please feel free to clone and modify this project. Pull requests are welcome.
Conventional Commits
We follow the Conventional Commits specification for all commits. Make sure your commit messages adhere to this standard.
License
This Safe Network repository is licensed under the General Public License (GPL), version 3 (LICENSE http://www.gnu.org/licenses/gpl-3.0.en.html).
Feel free to modify or expand upon this README as needed. Would you like to add or change anything else?
Dependencies
~70–110MB
~2M SLoC