Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
This reverts commit e864fb6.
| }; | ||
|
|
||
| // Load the compiled Zig shared library | ||
| const lib = await openLibrary(path.resolve("../bun"), fns); |
There was a problem hiding this comment.
the path.resolve("../bun") is strange here. I don't think it will work when the cwd is another consumer of this package.
maybe better is path.join(import.meta.dirname, '..')
(I'm assuming the dylib would be located at something like bun/libstate-transition-utils.dylib)
There was a problem hiding this comment.
I simplified it to const lib = await openLibrary(path.resolve("."), fns); please have a look at the latest change
There was a problem hiding this comment.
@twoeths check this comment. Try something with import.meta.dirname here instead of path.resolve/cwd
There was a problem hiding this comment.
thanks, just switched to "import.meta.dirname"
3c6482f to
6c060fc
Compare
2bc92dd to
f28257c
Compare
714a29b to
d848013
Compare
|
the |
…, outbound API ## Gossip → Beacon Node pipeline (issue ChainSafe#9) - Add on_validated_message callback to EthGossipAdapter (setMessageHandler(ctx, callback) — called for every ACCEPT-validated message) - validateDecoded() now delivers accepted messages to the BN processing pipeline - Beacon node wires this to enqueue blocks/attestations for import ## Gossipsub ACCEPT/REJECT feedback (issue ChainSafe#11) - handleMessage() now accepts from_peer: ?[]const u8 parameter - For REJECT outcomes, calls gossipsub.router.recordInvalidMessage(peer, topic) which increments the P4 (invalid message delivery) score counter - pollEvents() passes msg.from to handleMessage() - Gossipsub can now penalize peers who send invalid messages ## Outbound request API (issue ChainSafe#10) - Add decodeResponseChunks() + freeDecodedResponseChunks() to req_resp_encoding.zig to parse a complete response wire buffer into []DecodedResponseChunk - handleOutbound() now decodes the response and calls ctx.on_response callback if present, passing parsed chunks to the caller (sync service, etc.) - Export new types from root.zig (DecodedResponseChunk, decodeResponseChunks, freeDecodedResponseChunks) 🤖 Generated with AI assistance
Medium issue ChainSafe#9 from REVIEW.md: two overlapping unknown-block mechanisms existed without clear documentation of which to use when. Add detailed module-level doc to unknown_block.zig explaining: - UnknownBlockSync: triggered by gossip blocks with unknown parent; stores full block bytes; resolves by parent chain walk + recursive import - UnknownChainSync: triggered by unknown roots from attestations/status; no block bytes, only roots; resolves by backwards header chain to fork choice, then triggers forward range sync - The key distinction: UnknownBlockSync has the block, UnknownChainSync does not. They are complementary, not redundant. 🤖 Generated with AI assistance
Motivation
Description
TODOs
bun run buildbun test:unitbun benchmarkbun prePublish. ==> tested in feat: prepublish step in workflow #11bun publish