Skip to content

Commit

Permalink
nomerge: add debug logs to api compare
Browse files Browse the repository at this point in the history
  • Loading branch information
aatifsyed committed Mar 20, 2024
1 parent 3c05547 commit 27cbe03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/tests/calibnet_offline_rpc_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ for port in "${PORTS[@]}"; do
done

# Compare the http endpoints
RUST_LOG="forest_filecoin=debug"
$FOREST_TOOL_PATH api compare "$snapshot" --forest /ip4/127.0.0.1/tcp/8080/http --lotus /ip4/127.0.0.1/tcp/8081/http --n-tipsets 5

# Compare the ws endpoints
Expand Down
1 change: 1 addition & 0 deletions src/rpc/state_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ pub async fn state_wait_msg<DB: Blockstore + Send + Sync + 'static>(
params: Params<'_>,
data: Data<RPCState<DB>>,
) -> Result<MessageLookup, JsonRpcError> {
dbg!();
let LotusJson((cid, confidence)): LotusJson<(Cid, i64)> = params.parse()?;

let state_manager = &data.state_manager;
Expand Down
1 change: 1 addition & 0 deletions src/state_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,7 @@ where
msg_cid: Cid,
confidence: i64,
) -> Result<(Option<Arc<Tipset>>, Option<Receipt>), Error> {
dbg!();
let mut subscriber = self.cs.publisher().subscribe();
let (sender, mut receiver) = oneshot::channel::<()>();
let message = crate::chain::get_chain_message(self.blockstore(), &msg_cid)
Expand Down

0 comments on commit 27cbe03

Please sign in to comment.