-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor database access and peer discovery (#4)
* update the db abstraction, and pass context in places * add a second static identity keys for testing * keep track of connected peers for dialback later * widen the number of discovery peers, attempt redial * update readme * display log what function the worker is installing * will rewrite tests * chore: Updated coverage badge. Co-authored-by: GitHub Action <[email protected]>
- Loading branch information
1 parent
76a493e
commit 1ba7ab6
Showing
20 changed files
with
311 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,43 @@ | ||
![Coverage](https://img.shields.io/badge/Coverage-48.1%25-yellow) | ||
![Coverage](https://img.shields.io/badge/Coverage-0.0%25-red) | ||
|
||
# b7s daemon | ||
|
||
`blockless` the peer to peer networking daemon for the blockless network. | ||
b7s is a peer-to-peer networking daemon for the blockless network. It is supported on Windows, Linux, and MacOS platforms for both x64 and arm64 architectures. | ||
|
||
Supported Platforms | ||
## Installation | ||
|
||
| OS | arm64 | x64 | | ||
| ------- | ----- | --- | | ||
| Windows | | x | | ||
| Linux | x | x | | ||
| MacOS | x | x | | ||
|
||
Using **curl**: | ||
You can install b7s using either curl or wget: | ||
|
||
```bash | ||
# using curl | ||
sudo sh -c "curl https://raw.githubusercontent.com/blocklessnetwork/b7s/main/download.sh | bash" | ||
``` | ||
|
||
Using **wget**: | ||
|
||
```bash | ||
# using wget | ||
sudo sh -c "wget https://raw.githubusercontent.com/blocklessnetwork/b7s/main/download.sh -v -O download.sh; chmod +x download.sh; ./download.sh; rm -rf download.sh" | ||
``` | ||
|
||
Use `docker` see docker [docs](docker/README.md) | ||
You can also use Docker to install b7s. See the [Docker documentation](https://chat.openai.com/chat/docker/README.md) for more information. | ||
|
||
## usage | ||
Usage | ||
b7s can be run with a number of commands and flags: | ||
|
||
commands | ||
`b7s [command]` | ||
Commands: | ||
|
||
- `help` display help menu | ||
- `keygen` generate identity keys for the node | ||
- `help`: display the help menu | ||
- `keygen`: generate identity keys for the node | ||
Flags: | ||
|
||
flags | ||
`b7s --flag value` | ||
- `config`: path to the configuration file | ||
- `out`: style of logging used in the daemon (rich, text, or json) | ||
For example: | ||
|
||
- `config` path to the configuration file | ||
- `out` style of logging used in the daemon (rich|text|json) | ||
|
||
```bash | ||
b7s --config=../configs/head-config.yaml --out=json | ||
``` | ||
## Dependencies | ||
|
||
## depends on | ||
b7s depends on the following repositories: | ||
|
||
- [blocklessnetwork/runtime](https://github.com/blocklessnetwork/runtime) | ||
- [blocklessnetwork/orchestration-chain](https://github.com/blocklessnetwork/orchestration-chain) | ||
- blocklessnetwork/runtime | ||
- blocklessnetwork/orchestration-chain | ||
|
||
## contributing | ||
## Contributing | ||
|
||
see [src/readme](src/README.md) | ||
See src/README for information on contributing to the b7s project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
12D3KooWQrN5U3BApv4JYjE5HyKXFKkRF2U8c5FgK3zMPjzkZTpQ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@��!������Y�����F��g��o�����b\�Mɏd�n | ||
��o}�m���VzwC��5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
�b\�Mɏd�n | ||
��o}�m���VzwC��5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/12D3KooWQrN5U3BApv4JYjE5HyKXFKkRF2U8c5FgK3zMPjzkZTpQ_appDb/OPTIONS-000003
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[Version] | ||
pebble_version=0.1 | ||
|
||
[Options] | ||
bytes_per_sync=524288 | ||
cache_size=8388608 | ||
cleaner=delete | ||
compaction_debt_concurrency=1073741824 | ||
comparer=leveldb.BytewiseComparator | ||
disable_wal=false | ||
flush_delay_delete_range=0s | ||
flush_delay_range_key=0s | ||
flush_split_bytes=4194304 | ||
format_major_version=1 | ||
l0_compaction_concurrency=10 | ||
l0_compaction_file_threshold=500 | ||
l0_compaction_threshold=4 | ||
l0_stop_writes_threshold=12 | ||
lbase_max_bytes=67108864 | ||
max_concurrent_compactions=1 | ||
max_manifest_file_size=134217728 | ||
max_open_files=1000 | ||
mem_table_size=4194304 | ||
mem_table_stop_writes_threshold=2 | ||
min_deletion_rate=0 | ||
merger=pebble.concatenate | ||
read_compaction_rate=16000 | ||
read_sampling_multiplier=16 | ||
strict_wal_tail=true | ||
table_cache_shards=8 | ||
table_property_collectors=[] | ||
validate_on_ingest=false | ||
wal_dir= | ||
wal_bytes_per_sync=0 | ||
max_writer_concurrency=0 | ||
force_writer_parallelism=false | ||
|
||
[Level "0"] | ||
block_restart_interval=16 | ||
block_size=4096 | ||
compression=Snappy | ||
filter_policy=none | ||
filter_type=table | ||
index_block_size=4096 | ||
target_file_size=2097152 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.