Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(p2pool): sha-3 P2Pool implementation #2

Merged
merged 45 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
c8d2782
initial version
ksrichard Jun 4, 2024
f2233a3
added new grpc service to handle new logic for p2pool block template …
ksrichard Jun 5, 2024
72d889e
impl in progress
ksrichard Jun 6, 2024
1f2030f
refactor + handle properly when a block with lower difficulty not acc…
ksrichard Jun 7, 2024
7d21c94
handle cases when a submitted block's difficulty is lower than latest…
ksrichard Jun 10, 2024
a197e8b
share chain implementation in progress
ksrichard Jun 10, 2024
e07ca29
refactor + node info publishing almost done via kademlia
ksrichard Jun 11, 2024
027ddef
automatic broadcasting of peer info implemented + tracking all of the…
ksrichard Jun 12, 2024
11375bb
cleanup + p2p service client impl in progress
ksrichard Jun 12, 2024
768d953
p2p service client basics
ksrichard Jun 12, 2024
f958325
p2p block validation almost done
ksrichard Jun 13, 2024
3011129
p2p block validation in progress
ksrichard Jun 14, 2024
1b1302f
share chain implemented + block broadcast done too
ksrichard Jun 19, 2024
9b0fccd
implemented share chain synchronization
ksrichard Jun 20, 2024
1d94a93
small update
ksrichard Jun 20, 2024
1868ea4
reimplemented peer store using moka
ksrichard Jun 20, 2024
bae56f8
fixed deadlocks, implemented block sync, block validation almost done
ksrichard Jun 21, 2024
a7e215b
small fixes
ksrichard Jun 21, 2024
fc7a20b
code cleanup in progress + fixed shares count logic
ksrichard Jun 24, 2024
7c4a64c
fixes
ksrichard Jun 25, 2024
bb527a9
small update
ksrichard Jun 25, 2024
5ab0866
small changes
ksrichard Jun 25, 2024
cf8aa4d
Merge branch 'development' into mining_only
ksrichard Jun 26, 2024
aa1a6b9
small changes
ksrichard Jun 26, 2024
9fb89ae
reenabled mdns
ksrichard Jun 26, 2024
8893cda
finalize code + added todo
ksrichard Jun 26, 2024
02cf2f4
Added stable peer functionality
ksrichard Jun 27, 2024
f40e917
small updates
ksrichard Jun 27, 2024
e399b3f
fixed miner wallet address format
ksrichard Jun 27, 2024
9277872
readme in progress
ksrichard Jun 27, 2024
9426a2d
updated readme
ksrichard Jun 28, 2024
6f355fb
fixing block sync logic and format all code
ksrichard Jun 28, 2024
9f1268b
added mining_enabled flag
ksrichard Jun 28, 2024
4a6d9c9
Added ubuntu dependencies bash
ksrichard Jul 2, 2024
ac76e6f
Remove unneeded deps + added Cargo.lock
ksrichard Jul 2, 2024
dbf1cf6
removed unneeded gh action steps
ksrichard Jul 2, 2024
0e0f363
small updates
ksrichard Jul 2, 2024
18127e3
small updates
ksrichard Jul 2, 2024
ebd88ab
small updates
ksrichard Jul 2, 2024
3fb98b9
small updates
ksrichard Jul 2, 2024
9d78814
small updates
ksrichard Jul 2, 2024
3f3d50a
added new configs and copyright
ksrichard Jul 3, 2024
77ce4e3
Merge branch 'tari-project:development' into mining_only
ksrichard Jul 3, 2024
e1212b8
P2Pool implementation
ksrichard Jul 3, 2024
221476a
Merge remote-tracking branch 'origin/mining_only' into mining_only
ksrichard Jul 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[alias]
ci-fmt = "fmt --all -- --check"
ci-fmt-fix = "fmt --all"
ci-clippy = "lints clippy --all-targets --all-features"
ci-test-compile = "test --no-run --workspace --all-features --no-default-features"
ci-test = "nextest run --all-features --release --workspace --exclude integration_tests --profile ci"
ci-cucumber = "test --all-features --release --package integration_tests"
ci-check = "check --workspace --release --all-features --all-targets --locked"
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ concurrency:
jobs:
clippy:
name: clippy
runs-on: [ubuntu-20.04]
runs-on: [ ubuntu-20.04 ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
machete:
# Checks for unused dependencies.
name: machete
runs-on: [ubuntu-20.04]
runs-on: [ ubuntu-20.04 ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
# Runs cargo check with stable toolchain to determine whether the codebase is likely to build
# on stable Rust.
name: cargo check with stable
runs-on: [self-hosted, ubuntu-high-cpu]
runs-on: [ self-hosted, ubuntu-high-cpu ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -144,13 +144,9 @@ jobs:
run: rustup show
- name: cargo check
run: cargo check --release --all-targets --workspace --exclude tari_integration_tests --locked
- name: cargo check wallet ffi separately
run: cargo check --release --package minotari_wallet_ffi --locked
- name: cargo check chat ffi separately
run: cargo check --release --package minotari_chat_ffi --locked
licenses:
name: file licenses
runs-on: [ubuntu-20.04]
runs-on: [ ubuntu-20.04 ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -163,7 +159,7 @@ jobs:
run: ./scripts/file_license_check.sh
test:
name: test
runs-on: [self-hosted, ubuntu-high-cpu]
runs-on: [ self-hosted, ubuntu-high-cpu ]
permissions:
checks: write
pull-requests: write
Expand Down Expand Up @@ -224,7 +220,7 @@ jobs:
# Allows other workflows to know the PR number
artifacts:
name: pr_2_artifact
runs-on: [ubuntu-20.04]
runs-on: [ ubuntu-20.04 ]
steps:
- name: Save the PR number in an artifact
shell: bash
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

Expand Down
Loading
Loading