diff --git a/src/ckb/channel.rs b/src/ckb/channel.rs index d5d334cb..bc74bdbd 100644 --- a/src/ckb/channel.rs +++ b/src/ckb/channel.rs @@ -908,7 +908,7 @@ where type State = ChannelActorState; type Arguments = ChannelInitializationParameter; - async fn pre_start( + async fn pre_start( &self, myself: ActorRef, args: Self::Arguments, diff --git a/src/ckb_chain/funding/funding_tx.rs b/src/ckb_chain/funding/funding_tx.rs index 75aa5121..e9050fed 100644 --- a/src/ckb_chain/funding/funding_tx.rs +++ b/src/ckb_chain/funding/funding_tx.rs @@ -1,9 +1,5 @@ -use std::collections::{HashMap, HashSet}; - use super::super::FundingError; use crate::{ckb::serde_utils::EntityHex, ckb_chain::contracts::get_udt_cell_deps}; - -use tracing::{debug, warn}; use anyhow::anyhow; use ckb_sdk::{ constants::SIGHASH_TYPE_HASH, @@ -28,6 +24,8 @@ use molecule::{ }; use serde::Deserialize; use serde_with::serde_as; +use std::collections::{HashMap, HashSet}; +use tracing::{debug, warn}; /// Funding transaction wrapper. /// diff --git a/src/main.rs b/src/main.rs index e0a06991..a31fc5ac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,6 +23,9 @@ use tracing_subscriber::fmt::format; #[tokio::main] pub async fn main() { + // ractor will set "id" for each actor: + // https://github.com/slawlor/ractor/blob/67d657e4cdcb8884a9ccc9b758704cbb447ac163/ractor/src/actor/mod.rs#L701 + // here we map it with the node prefix let node_formatter = format::debug_fn(|writer, field, value| { if field.name() == "id" { write!(