Skip to content

Commit

Permalink
add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Jul 8, 2024
1 parent 9533e4b commit d3355b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ckb/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ where
type State = ChannelActorState;
type Arguments = ChannelInitializationParameter;

async fn pre_start(
async fn pre_start(
&self,
myself: ActorRef<Self::Msg>,
args: Self::Arguments,
Expand Down
6 changes: 2 additions & 4 deletions src/ckb_chain/funding/funding_tx.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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.
///
Expand Down
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit d3355b5

Please sign in to comment.