Skip to content

Commit

Permalink
Merge remote-tracking branch 'nervosnetwork/develop' into update-chan…
Browse files Browse the repository at this point in the history
…nel-info-with-counterparty
  • Loading branch information
contrun committed Jan 10, 2025
2 parents dfb2683 + 5051443 commit 75ed475
Show file tree
Hide file tree
Showing 12 changed files with 802 additions and 716 deletions.
50 changes: 44 additions & 6 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fnn"
version = "0.2.0"
version = "0.2.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down Expand Up @@ -39,7 +39,7 @@ bitflags = { version = "2.5.0", features = ["serde"] }
ckb-hash = "0.115.0"
secp256k1 = { version = "0.28.0", features = ["serde", "recovery", "rand-std"] }
musig2 = { version = "0.0.11", features = ["secp256k1", "serde"] }
ractor = "=0.9.7"
ractor = "0.14.2"
arcode = "0.2.4"
nom = "7.1.3"
regex = "1.10.5"
Expand Down
8 changes: 6 additions & 2 deletions src/actors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ impl Actor for RootActor {

async fn post_stop(
&self,
_myself: ActorRef<Self::Msg>,
myself: ActorRef<Self::Msg>,
_state: &mut Self::State,
) -> Result<(), ActorProcessingErr> {
debug!("Root actor stopped");
myself
.get_cell()
.stop_children_and_wait(Some("Root actor stopped".to_string()), None)
.await;
Ok(())
}

Expand All @@ -68,7 +72,7 @@ impl Actor for RootActor {
debug!("Actor terminated for unknown reason (id: {:?})", who);
}
},
SupervisionEvent::ActorPanicked(who, err) => {
SupervisionEvent::ActorFailed(who, err) => {
panic!("Actor unexpectedly panicked (id: {:?}): {:?}", who, err);
}
_ => {}
Expand Down
Loading

0 comments on commit 75ed475

Please sign in to comment.