Skip to content

Commit

Permalink
fix: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Nov 11, 2024
1 parent 8b382e3 commit ad267df
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aggsender/block_notifier_polling.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (b *BlockNotifierPolling) step(ctx context.Context,
b.logger.Warnf("Missed block(s) [finality:%s]: %d -> %d",
b.config.BlockFinalityType, previousState.lastBlockSeen, currentBlock.Number.Uint64())
// It start from scratch because something fails in calculation of block period
newState := previousState.clear()
newState := previousState.intialBlock(currentBlock.Number.Uint64())
return b.nextBlockRequestDelay(nil, nil), newState, eventToEmit
}
newState := previousState.incommingNewBlock(currentBlock.Number.Uint64())
Expand Down
3 changes: 1 addition & 2 deletions aggsender/block_notifier_polling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func TestBlockNotifierPollingStep(t *testing.T) {
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
//t.Parallel()
t.Parallel()
testData := newBlockNotifierPollingTestData(t, nil)

timeNowFunc = func() time.Time {
Expand All @@ -127,7 +127,6 @@ func TestBlockNotifierPollingStep(t *testing.T) {
}
})
}

}

func TestDelayNoPreviousBLock(t *testing.T) {
Expand Down
2 changes: 0 additions & 2 deletions test/config/kurtosis-cdk-node-config.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ AggregatorPrivateKeyPassword = "{{.zkevm_l2_keystore_password}}"
SenderProofToL1Addr = "{{.zkevm_l2_agglayer_address}}"
polygonBridgeAddr = "{{.zkevm_bridge_address}}"


RPCURL = "http://{{.l2_rpc_name}}{{.deployment_suffix}}:{{.zkevm_rpc_http_port}}"
WitnessURL = "http://{{.l2_rpc_name}}{{.deployment_suffix}}:{{.zkevm_rpc_http_port}}"


Expand Down

0 comments on commit ad267df

Please # to comment.