Crates.io | sn_node |
lib.rs | sn_node |
version | 0.112.3 |
source | src |
created_at | 2020-12-02 09:38:37.793768 |
updated_at | 2024-11-06 13:52:34.719056 |
description | Safe Node |
homepage | https://maidsafe.net |
repository | https://github.com/maidsafe/safe_network |
max_upload_size | |
id | 318846 |
size | 746,886 |
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.
Follow the main project's installation guide to set up the safenode
binary.
To run the safenode
binary, follow the instructions in the main project's usage guide.
src/
: Source code files
api.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 resourcestests/
: Test files
common/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 locationsTo run tests, navigate to the sn_node
directory and execute:
cargo test
Please feel free to clone and modify this project. Pull requests are welcome.
We follow the Conventional Commits specification for all commits. Make sure your commit messages adhere to this standard.
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?