Skip to content

Commit 287ccc4

Browse files
committed
fix sequencer p2p address
1 parent 54d5917 commit 287ccc4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/e2e/evm_force_inclusion_e2e_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,6 @@ func setupFullNodeWithForceInclusionCheck(t *testing.T, sut *SystemUnderTest, fu
339339
// Create JWT secret file for full node
340340
jwtSecretFile := createJWTSecretFile(t, fullNodeHome, jwtSecret)
341341

342-
// Get sequencer's peer ID for P2P connection
343-
sequencerID := NodeID(t, sequencerHome)
344-
345342
// Start full node WITH forced_inclusion_namespace configured
346343
// This allows it to retrieve forced txs from DA and detect when they're missing from blocks
347344
fnArgs := []string{
@@ -355,7 +352,7 @@ func setupFullNodeWithForceInclusionCheck(t *testing.T, sut *SystemUnderTest, fu
355352
"--evnode.da.forced_inclusion_namespace", "forced-inc", // Enables forced inclusion verification
356353
"--evnode.rpc.address", endpoints.GetFullNodeRPCListen(),
357354
"--evnode.p2p.listen_address", endpoints.GetFullNodeP2PAddress(),
358-
"--evnode.p2p.peers", fmt.Sprintf("%s@%s", sequencerID, sequencerP2PAddr),
355+
"--evnode.p2p.peers", sequencerP2PAddr,
359356
"--evm.engine-url", endpoints.GetFullNodeEngineURL(),
360357
"--evm.eth-url", endpoints.GetFullNodeEthURL(),
361358
}
@@ -409,8 +406,11 @@ func TestEvmSyncerMaliciousSequencerForceInclusionE2E(t *testing.T) {
409406
t.Log("Malicious sequencer started listening to WRONG forced inclusion namespace")
410407
t.Log("NOTE: Sequencer listens to 'wrong-namespace', won't see txs on 'forced-inc'")
411408

409+
sequencerP2PAddress := getNodeP2PAddress(t, sut, sequencerHome, endpoints.RollkitRPCPort)
410+
t.Logf("Sequencer P2P address: %s", sequencerP2PAddress)
411+
412412
// Setup full node that will sync from the sequencer and verify forced inclusion
413-
setupFullNodeWithForceInclusionCheck(t, sut, fullNodeHome, sequencerHome, fullNodeJwtSecret, genesisHash, endpoints.GetRollkitP2PAddress(), endpoints)
413+
setupFullNodeWithForceInclusionCheck(t, sut, fullNodeHome, sequencerHome, fullNodeJwtSecret, genesisHash, sequencerP2PAddress, endpoints)
414414
t.Log("Full node (syncer) is up and will verify forced inclusion from DA")
415415

416416
// Connect to clients

0 commit comments

Comments
 (0)