Skip to content

Commit

Permalink
Add todo regarding resp value of produce api
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jan 24, 2025
1 parent 25bfff0 commit 1331488
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/api/src/beacon/routes/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ export function getTypeByEvent(config: ChainForkConfig): {[K in EventType]: Type
[EventType.lightClientFinalityUpdate]: WithVersion(
(fork) => getLightClientForkTypes(fork).LightClientFinalityUpdate
),

[EventType.inclusionList]: WithVersion(() => ssz.focil.SignedInclusionList),
};
}
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/beacon/routes/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ export type Endpoints = {
slot: Slot;
},
{query: {slot: number}},
// TODO FOCIL: the api should probably return only the relevant data
focil.InclusionList,
VersionMeta
>;
Expand Down
2 changes: 1 addition & 1 deletion packages/beacon-node/test/e2e/network/gossipsub.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function runTests({useWorker}: {useWorker: boolean}): void {
);
});

it("Publish and receive a inclusion list", async () => {
it("Publish and receive an inclusion list", async () => {
let onInclusionList: (fu: Uint8Array) => void;
const onInclusionListPromise = new Promise<Uint8Array>((resolve) => {
onInclusionList = resolve;
Expand Down

0 comments on commit 1331488

Please sign in to comment.