Skip to content

Commit

Permalink
print data to console
Browse files Browse the repository at this point in the history
  • Loading branch information
livthomas committed Jun 30, 2023
1 parent 424adee commit c678aed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/tendermint-rpc/src/tendermint34/adaptor/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,8 @@ interface RpcSyncInfo {
}

function decodeSyncInfo(data: RpcSyncInfo): responses.SyncInfo {
// @ts-ignore
console.log(data); // TODO remove
return {
earliestAppHash: data.earliest_app_hash ? fromHex(assertNotEmpty(data.earliest_app_hash)) : undefined,
earliestBlockHash: data.earliest_block_hash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ function defaultTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValues)
expect(status.nodeInfo.other.size).toBeGreaterThanOrEqual(2);
expect(status.nodeInfo.other.get("tx_index")).toEqual("on");

console.log(status.syncInfo); // TODO remove

// sync info
expect(status.syncInfo.catchingUp).toEqual(false);
expect(status.syncInfo.latestBlockHeight).toBeGreaterThanOrEqual(1);
Expand Down

0 comments on commit c678aed

Please sign in to comment.