Skip to content

Conversation

@zlacfzy
Copy link

@zlacfzy zlacfzy commented Feb 3, 2026

Description

Add malicious behavior simulation for BEP-657 blob chaos testing. This enables integration tests to validate blob transaction handling under fault injection scenarios.

Rationale

tell us why we need these changes...

Example

  1. ForceBlobOnNonEligible
    Allow packing blob transactions even when block number N % 5 != 0
    Simulates a malicious validator attempting to include blobs in non-eligible blocks
  2. CorruptBlobSidecar
    Corrupt blob sidecar data during P2P broadcast
    XORs the first byte of each blob to simulate data corruption
  3. DropBlobSidecar
    Drop blob sidecars entirely during P2P broadcast
    Simulates missing blob data in P2P propagation

New RPC methods under miner namespace:
miner_setForceBlobOnNonEligible(bool) - Toggle forcing blobs on non-eligible blocks
miner_setCorruptBlobSidecar(bool) - Toggle blob sidecar corruption
miner_setDropBlobSidecar(bool) - Toggle blob sidecar dropping
All methods return the current MBConfig state.

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@NathanBSC NathanBSC merged commit 577bac6 into node-real:malicious_behavior_miner Feb 4, 2026
NathanBSC pushed a commit that referenced this pull request Feb 4, 2026
…g. (#147)

* feat: add malicious behavior simulation for BEP-657 blob chaos testing.

* feat: add malicious behavior simulation for BEP-657 blob chaos testing.
NathanBSC pushed a commit that referenced this pull request Feb 4, 2026
…g. (#147)

* feat: add malicious behavior simulation for BEP-657 blob chaos testing.

* feat: add malicious behavior simulation for BEP-657 blob chaos testing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants