Skip to content

Commit

Permalink
prepare release, debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
daywalker90 committed Oct 21, 2024
1 parent 1e92d6c commit 5a20094
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [2.1.1] - 2024-10-21

### Fixed
- rebalances between private channels would fail after the first if only private channels are candidates

## [2.1.0] - 2024-09-23

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sling"
version = "2.1.0"
version = "2.1.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion coffee.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugin:
name: sling
version: 2.1.0
version: 2.1.1
lang: rust
install: |
cargo build --release && cp target/release/sling . && cargo clean
Expand Down
20 changes: 20 additions & 0 deletions src/slings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,16 @@ fn build_candidatelist(

if match job.sat_direction {
SatDirection::Pull => {
debug!(
"candidates_pull: {} {} {} {}",
scid,
to_us_msat,
job.amount_msat + 10_000_000,
min(
(depleteuptopercent * total_msat as f64) as u64,
depleteuptoamount,
)
);
to_us_msat
> max(
job.amount_msat + 10_000_000,
Expand All @@ -730,6 +740,16 @@ fn build_candidatelist(
}
}
SatDirection::Push => {
debug!(
"candidates_pull: {} {} {} {}",
scid,
total_msat - to_us_msat,
job.amount_msat + 10_000_000,
min(
(depleteuptopercent * total_msat as f64) as u64,
depleteuptoamount,
)
);
total_msat - to_us_msat
> max(
job.amount_msat + 10_000_000,
Expand Down

0 comments on commit 5a20094

Please sign in to comment.