Skip to content

Commit 51aee29

Browse files
authored
Merge pull request #5 from fedibtc/20250711-spv2
Upgrade to fm7 and adding spv2 module
2 parents 9923e2f + f1b5a11 commit 51aee29

File tree

16 files changed

+2747
-621
lines changed

16 files changed

+2747
-621
lines changed

Cargo.lock

Lines changed: 2558 additions & 532 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
[workspace]
2-
members = [
3-
"fmo_api_types",
4-
"fmo_frontend",
5-
"fmo_server",
6-
]
2+
members = ["fmo_api_types", "fmo_frontend", "fmo_server"]
73

84
resolver = "2"
95

106
[workspace.dependencies]
11-
fedimint-api-client = { version = "0.4", git = "https://github.com/elsirion/fedimint", branch = "v0.4.4-patch-xyz" }
12-
fedimint-core = { version = "0.4", git = "https://github.com/elsirion/fedimint", branch = "v0.4.4-patch-xyz" }
13-
fedimint-ln-common = { version = "0.4", git = "https://github.com/elsirion/fedimint", branch = "v0.4.4-patch-xyz" }
14-
fedimint-mint-common = { version = "0.4", git = "https://github.com/elsirion/fedimint", branch = "v0.4.4-patch-xyz" }
15-
fedimint-wallet-common = { version = "0.4", git = "https://github.com/elsirion/fedimint", branch = "v0.4.4-patch-xyz" }
7+
fedimint-core = { git = "https://github.com/fedibtc/fedimint", tag = "v0.7.0-fedi2" }
8+
fedimint-api-client = { git = "https://github.com/fedibtc/fedimint", tag = "v0.7.0-fedi2" }
9+
fedimint-ln-common = { git = "https://github.com/fedibtc/fedimint", tag = "v0.7.0-fedi2" }
10+
fedimint-mint-common = { git = "https://github.com/fedibtc/fedimint", tag = "v0.7.0-fedi2" }
11+
fedimint-wallet-common = { git = "https://github.com/fedibtc/fedimint", tag = "v0.7.0-fedi2" }

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
pname = "fmo_server";
6969
version = "0.1.0";
7070
src = rustSrc;
71-
cargoExtraArgs = "--package=fmo_server --features=stability_pool_v1";
71+
cargoExtraArgs = "--package=fmo_server --features=stability_pool";
7272
RUSTFLAGS = "--cfg tokio_unstable";
7373
});
7474
in

fmo_api_types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
bitcoin = { version = "0.30.2", features = ["serde"] }
7+
bitcoin = { version = "0.32.5", features = ["serde"] }
88
fedimint-core = { workspace = true }
99
serde = { version = "1.0", features = ["derive"] }

fmo_frontend/src/components/federation/guardians.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::collections::BTreeMap;
22

33
use fedimint_core::config::FederationId;
4-
use fedimint_core::util::backon::FibonacciBuilder;
4+
use fedimint_core::util::backoff_util::background_backoff;
55
use fedimint_core::util::retry;
66
use fedimint_core::{NumPeers, PeerId};
77
use fmo_api_types::GuardianHealth;
@@ -125,7 +125,7 @@ pub struct Guardian {
125125
async fn fetch_guardian_health(id: FederationId) -> BTreeMap<PeerId, GuardianHealth> {
126126
retry(
127127
"fetching guardian health",
128-
FibonacciBuilder::default().with_max_times(usize::MAX),
128+
background_backoff(),
129129
|| async move {
130130
reqwest::get(format!("{}/federations/{}/health", BASE_URL, id))
131131
.await?

fmo_frontend/src/components/federations/totals.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use fedimint_core::util::backon::FibonacciBuilder;
1+
use fedimint_core::util::backoff_util::background_backoff;
22
use fedimint_core::util::retry;
33
use fmo_api_types::FedimintTotals;
44
use leptos::{component, create_resource, view, IntoView, SignalGet};
@@ -11,7 +11,7 @@ pub fn Totals() -> impl IntoView {
1111
|_| async {
1212
retry(
1313
"fetching federation totals",
14-
FibonacciBuilder::default().with_max_times(usize::MAX),
14+
background_backoff(),
1515
fetch_federation_totals,
1616
)
1717
.await

fmo_frontend/src/components/nostr/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::collections::BTreeMap;
66
use check_federation::CheckFederation;
77
use fedimint_core::config::FederationId;
88
use fedimint_core::invite_code::InviteCode;
9-
use fedimint_core::util::backon::FibonacciBuilder;
9+
use fedimint_core::util::backoff_util::background_backoff;
1010
use fedimint_core::util::retry;
1111
use leptos::{component, create_resource, view, IntoView, SignalGet};
1212
use leptos_meta::Title;
@@ -76,7 +76,7 @@ async fn fetch_nostr_federations() -> BTreeMap<FederationId, InviteCode> {
7676

7777
retry(
7878
"Fetching Nostr federations",
79-
FibonacciBuilder::default().with_max_times(usize::MAX),
79+
background_backoff(),
8080
fetch_nostr_federations_impl,
8181
)
8282
.await

fmo_frontend/src/components/nostr/nostr_federation_row.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::collections::BTreeMap;
33
use anyhow::Context;
44
use fedimint_core::config::FederationId;
55
use fedimint_core::invite_code::InviteCode;
6-
use fedimint_core::util::backon::FibonacciBuilder;
6+
use fedimint_core::util::backoff_util::background_backoff;
77
use fedimint_core::util::retry;
88
use leptos::{component, create_resource, view, IntoView, SignalGet};
99

@@ -57,7 +57,7 @@ async fn fetch_federation_name(invite_code: InviteCode) -> String {
5757

5858
retry(
5959
"Fetching federation name",
60-
FibonacciBuilder::default().with_max_times(usize::MAX),
60+
background_backoff(),
6161
fetch_federation_name_impl,
6262
)
6363
.await

fmo_server/Cargo.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fmo_server"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -17,10 +17,10 @@ anyhow = "1.0.81"
1717
async-stream = "0.3.5"
1818
axum = { version = "0.7.5", features = ["json"] }
1919
axum-auth = "0.7.0"
20-
bitcoin = "0.30.2"
20+
bitcoin = "0.32.5"
2121
csv = "1.3.0"
2222
dotenv = "0.15.0"
23-
esplora-client = { version = "0.7.0", default-features = false, features = [
23+
esplora-client = { version = "0.10.0", default-features = false, features = [
2424
"async-https-rustls",
2525
] }
2626
fmo_api_types = { path = "../fmo_api_types" }
@@ -46,7 +46,12 @@ tower-http = { version = "0.5.2", features = ["cors"] }
4646
chrono = { version = "0.4.38", features = ["serde"] }
4747
regex = "1.10.4"
4848

49-
stability-pool-common = { git = "https://github.com/tacio/fedi", branch = "fmo-compatible", optional = true }
49+
# The `stability_pool` feature requires two different versions of the `stability-pool-common` crate.
50+
# stability-pool-common-old is associated with the kind = stability_pool
51+
# stability-pool-common is associated with the kind = multi_sig_stability_pool
52+
stability-pool-common-old = { git = "https://github.com/fedixyz/fedi", tag = "v25.7.1", optional = true, package = "stability-pool-common-old" }
53+
stability-pool-common = { git = "https://github.com/fedixyz/fedi", tag = "v25.7.1", optional = true }
5054

5155
[features]
52-
stability_pool_v1 = ["dep:stability-pool-common"]
56+
# This feature is optional and intended for specific deployments that require stability pool functionality.
57+
stability_pool = ["dep:stability-pool-common-old", "dep:stability-pool-common"]

0 commit comments

Comments
 (0)