Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ func (rpc *RPC) TransactionReceipt(ctx context.Context, txHash ethcommon.Hash) (
if err != nil {
return nil, err
}
if receipt == nil {
return nil, errors.New("transaction has no receipt")
}
return receipt, nil
}, 3, 100*time.Millisecond) // 3 retries with 100ms initial delay
}
2 changes: 1 addition & 1 deletion server/l2/block_inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ func (bi *BlockInspector) processBlock(ctx context.Context, blockNumber uint64)
dropped := 0
for _, flashblocks := range payloads {
dropped += len(flashblocks)
for idx := len(flashblocks); idx >= 0; idx-- {
for idx := len(flashblocks) - 1; idx >= 0; idx-- {
fb := flashblocks[idx]
if fb != nil {
l.Warn("Flashblock was dropped",
Expand Down