-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add transaction drop listener (#2)
- Loading branch information
1 parent
30cea0f
commit 0c485dd
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/main/java/net/consensys/linea/DropTransactionsReporterCliOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2024, Consensys Software Inc. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package net.consensys.linea; | ||
|
||
import java.net.URI; | ||
import picocli.CommandLine; | ||
|
||
public class DropTransactionsReporterCliOptions { | ||
static final String NAMESPACE = "drop-transaction-reporter"; | ||
|
||
@CommandLine.Option( | ||
names = "--plugin-" + NAMESPACE + "-endpoint", | ||
description = "URI to report drop transactions", | ||
required = true, | ||
paramLabel = "<URI>") | ||
private URI endpoint = URI.create("http://localhost:8080"); | ||
|
||
public URI getEndpoint() { | ||
return endpoint; | ||
} | ||
|
||
public void setEndpoint(final URI endpoint) { | ||
this.endpoint = endpoint; | ||
} | ||
|
||
public DropTransactionsReporterCliOptions() {} | ||
} |