Skip to content

Commit

Permalink
Version 0.2.2
Browse files Browse the repository at this point in the history
- fine tune network reactor parameters
- add build script
  • Loading branch information
alfred-hodler committed May 22, 2024
1 parent 3083ab6 commit 2685c59
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 6 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: RUST_LOG=trace cargo test --all-features --verbose

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Format
run: cargo fmt --all --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Clippy
run: cargo clippy
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![Documentation](https://img.shields.io/docsrs/pushtx)](https://docs.rs/pushtx/latest/pushtx/)
[![Crates.io](https://img.shields.io/crates/v/pushtx.svg)](https://crates.io/crates/pushtx)
[![License](https://img.shields.io/crates/l/pushtx.svg)](https://github.com/alfred-hodler/pushtx/blob/master/LICENSE)
[![Test Status](https://github.com/alfred-hodler/pushtx/actions/workflows/rust.yml/badge.svg?branch=master)](https://github.com/alfred-hodler/pushtx/actions)

## Privacy-focused Bitcoin Transaction Broadcaster

Expand Down
4 changes: 2 additions & 2 deletions pushtx-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pushtx-cli"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
authors = ["Alfred Hodler <[email protected]>"]
license = "MIT"
Expand All @@ -18,5 +18,5 @@ anyhow = "1.0.86"
clap = { version = "4.5.4", features = ["derive"] }
env_logger = "0.11.3"
log = "0.4.20"
pushtx = { version = "0.2.0", path = "../pushtx" }
pushtx = { version = "0.2.2", path = "../pushtx" }
thiserror = "1.0.61"
2 changes: 1 addition & 1 deletion pushtx/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pushtx"
version = "0.2.0"
version = "0.2.2"
edition = "2021"
authors = ["Alfred Hodler <[email protected]>"]
license = "MIT"
Expand Down
9 changes: 8 additions & 1 deletion pushtx/src/p2p/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ pub fn client(socks_proxy: Option<SocketAddr>, network: crate::Network) -> Clien
let (handle, join_handle) = match socks_proxy {
Some(proxy) => {
let (reactor, handle) = peerlink::Reactor::with_connector(
Default::default(),
peerlink::Config {
stream_config: peerlink::StreamConfig {
tx_buf_min_size: 4096,
..Default::default()
},
receive_buffer_size: 32 * 1024,
..Default::default()
},
peerlink::connector::Socks5Connector {
proxy,
// random proxy credentials to get an isolated Tor circuit
Expand Down

0 comments on commit 2685c59

Please sign in to comment.