Skip to content

Commit

Permalink
deep log witness
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Sep 11, 2023
1 parent 006111f commit bd6e81b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/beacon-node/src/execution/engine/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as util from "node:util";
import {allForks, capella, deneb, Wei, bellatrix, Root, verge, ssz} from "@lodestar/types";
import {
BYTES_PER_LOGS_BLOOM,
Expand Down Expand Up @@ -282,7 +283,11 @@ export function parseExecutionPayload(
// right now the casing of executionWitness is camel case in the ssz caseMap
// we can directly use fromJson to read the serialized data from payload
const {executionWitness} = data;
console.log("parse executionWitness from EL", executionWitness, {blockNumber: data.blockNumber});
console.log(
"parse executionWitness from EL",
util.inspect(executionWitness, false, null, true /* enable colors */),
{blockNumber: data.blockNumber}
);
(executionPayload as verge.ExecutionPayload).executionWitness =
ssz.verge.ExecutionWitness.fromJson(executionWitness);
}
Expand Down

0 comments on commit bd6e81b

Please sign in to comment.