diff --git a/LICENSE b/LICENSE
index 261eeb9e..c05a0186 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,201 +1,21 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+MIT License
+
+Copyright (c) 2023 optimism-java
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/README.md b/README.md
index af59c360..633a5c2f 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-[![sui4j CI](https://github.com/GrapeBaBa/hildr/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/GrapeBaBa/hildr/actions/workflows/build.yml)
-[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
+[![hildr CI](https://github.com/GrapeBaBa/hildr/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/GrapeBaBa/hildr/actions/workflows/build.yml)
+[![License](https://img.shields.io/badge/license-MIT-blue)](https://opensource.org/licenses/MIT)
![Coverage](.github/badges/jacoco.svg)
![Branches](.github/badges/branches.svg)
diff --git a/config/checkstyle/google_checks.xml b/config/checkstyle/google_checks.xml
deleted file mode 100644
index bb0ce092..00000000
--- a/config/checkstyle/google_checks.xml
+++ /dev/null
@@ -1,382 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/config/ide/eclipse-java-google-style.xml b/config/ide/eclipse-java-google-style.xml
deleted file mode 100644
index 56e50792..00000000
--- a/config/ide/eclipse-java-google-style.xml
+++ /dev/null
@@ -1,337 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/config/ide/intellij-java-google-style.xml b/config/ide/intellij-java-google-style.xml
deleted file mode 100644
index 45bf14cc..00000000
--- a/config/ide/intellij-java-google-style.xml
+++ /dev/null
@@ -1,598 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/config/spotless/besu.license b/config/spotless/besu.license
deleted file mode 100644
index c936fcf4..00000000
--- a/config/spotless/besu.license
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- * Copyright ConsenSys AG.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- *
- * SPDX-License-Identifier: Apache-2.0
- */
\ No newline at end of file
diff --git a/config/spotless/java.license b/config/spotless/java.license
deleted file mode 100644
index d0363ea9..00000000
--- a/config/spotless/java.license
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright $YEAR 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
diff --git a/docker/Dockerfile b/docker/Dockerfile
index ec0c7dcd..54619b11 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -15,7 +15,7 @@ COPY . .
#RUN ./gradlew -Pagent run --args="--network optimism-goerli --jwt-secret bf549f5188556ce0951048ef467ec93067bc4ea21acebe46ef675cd4e8e015ff --l1-rpc-url https://eth-goerli.g.alchemy.com/v2/4fUcO9-bSvCtGYwwibuWbz7ktjWwuoN3 --l2-rpc-url http://192.168.3.230:8545 --l2-engine-url http://192.168.3.230:8551 --rpc-port 9545 --sync-mode full"
#RUN ./gradlew metadataCopy --task run --dir src/main/resources/META-INF/native-image
#RUN ./gradlew buildJarForDocker
-RUN #./gradlew :hildr-node:clean :hildr-node:nativeCompile -Pmusl
+#RUN ./gradlew :hildr-node:clean :hildr-node:nativeCompile -Pmusl
RUN ./gradlew :hildr-node:clean :hildr-node:buildBinary
#RUN cd /root/hildr/hildr-node/build/docker && \
#native-image -jar hildr-node.jar --no-fallback --enable-http --enable-https --enable-preview --add-modules jdk.incubator.concurrent -H:EnableURLProtocols=http,https --initialize-at-build-time=org.slf4j.LoggerFactory,ch.qos.logback.core.CoreConstants,ch.qos.logback.core.util.Loader,ch.qos.logback.core.util.StatusPrinter,ch.qos.logback.core.status.InfoStatus,ch.qos.logback.classic.Logger,ch.qos.logback.core.rolling.helper.FileNamePattern,ch.qos.logback.classic.Level,ch.qos.logback.core.status.StatusBase,io.opentelemetry.api.trace.ArrayBasedTraceStateBuilder,io.opentelemetry.context.LazyStorage,ch.qos.logback.core.util.FileSize,ch.qos.logback.core.rolling.helper.RollingCalendar,io.opentelemetry.api.internal.ImmutableSpanContext,io.opentelemetry.api.internal.OtelEncodingUtils,ch.qos.logback.classic.PatternLayout,io.opentelemetry.context.ThreadLocalContextStorage,io.opentelemetry.api.trace.PropagatedSpan,io.opentelemetry.context.ContextStorageWrappers,ch.qos.logback.core.rolling.helper.Compressor$1,io.opentelemetry.api.trace.ImmutableTraceFlags,ch.qos.logback.core.rolling.helper.RollingCalendar$1,ch.qos.logback.classic.model.ConfigurationModel,ch.qos.logback.core.model.processor.DefaultProcessor$1,ch.qos.logback.core.model.processor.ImplicitModelHandler$1,ch.qos.logback.core.subst.Token,ch.qos.logback.core.pattern.parser.Parser,ch.qos.logback.core.subst.Parser$1,ch.qos.logback.core.util.Duration,ch.qos.logback.core.model.processor.ChainedModelFilter$1,ch.qos.logback.classic.model.processor.ConfigurationModelHandler,ch.qos.logback.classic.model.processor.LogbackClassicDefaultNestedComponentRules,ch.qos.logback.core.subst.NodeToStringTransformer$1,ch.qos.logback.core.pattern.parser.TokenStream$1,ch.qos.logback.core.subst.Tokenizer$1 --initialize-at-run-time=io.netty.channel.AbstractChannel,io.netty.channel.socket.nio.SelectorProviderUtil,io.netty.util.concurrent.DefaultPromise,io.netty,org.slf4j.MDC,org.github.gestalt.config hildr-node
diff --git a/hildr-batcher/build.gradle b/hildr-batcher/build.gradle
index 18f1edda..138cfb4b 100644
--- a/hildr-batcher/build.gradle
+++ b/hildr-batcher/build.gradle
@@ -9,7 +9,7 @@ plugins {
}
group = 'io.optimism'
-version = '0.1.1'
+version = '0.2.4'
repositories {
// Use Maven Central for resolving dependencies.
@@ -194,13 +194,6 @@ spotless {
palantirJavaFormat('2.38.0')
// fix formatting of type annotations
formatAnnotations()
- // make sure every file has the following copyright header.
- // optionally, Spotless can set copyright years by digging
- // through git history (see "license" section below)
- licenseHeaderFile(project(":").file("config/spotless/java.license")).named('hildr').onlyIfContentMatches('/*\n' +
- ' * Copyright 2023 281165273grape@gmail.com')
- licenseHeaderFile(project(":").file("config/spotless/besu.license")).named('besu').onlyIfContentMatches('/*\n' +
- ' * Copyright ConsenSys AG')
importOrder()
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/BatcherSubmitter.java b/hildr-batcher/src/main/java/io/optimism/batcher/BatcherSubmitter.java
index 9b6103f6..f486e576 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/BatcherSubmitter.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/BatcherSubmitter.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher;
import com.google.common.util.concurrent.AbstractExecutionThreadService;
@@ -89,7 +73,7 @@ private void handleReceipt(Frame tx, TransactionReceipt receipt) {
}
@Override
- protected void run() throws Exception {
+ protected void run() {
while (isRunning() && !this.isShutdownTriggered) {
this.trySubmitBatchData();
}
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/channel/Channel.java b/hildr-batcher/src/main/java/io/optimism/batcher/channel/Channel.java
index a3c1bc35..42c5f4e1 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/channel/Channel.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/channel/Channel.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.channel;
import io.optimism.type.BlockId;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelConfig.java b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelConfig.java
index e0c936a0..d4114f7d 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelConfig.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelConfig.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.channel;
import io.optimism.batcher.config.Config;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelException.java b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelException.java
index 606e1798..a9b99ed8 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelException.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.channel;
/**
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelFullException.java b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelFullException.java
index fff50a86..474ce1dd 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelFullException.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelFullException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.channel;
/**
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelImpl.java b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelImpl.java
index 867c1581..6d22812d 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelImpl.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelImpl.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.channel;
import io.optimism.batcher.compressor.Compressor;
@@ -147,10 +131,10 @@ public void splitToFrame() {
@Override
public Frame nextFrame() {
- if (this.outputFrames.size() == 0) {
+ if (this.outputFrames.isEmpty()) {
throw new ChannelException("not next frame");
}
- var tx = this.outputFrames.remove(0);
+ var tx = this.outputFrames.removeFirst();
this.pendingTxs.put(tx.code(), tx);
return tx;
}
@@ -175,7 +159,7 @@ public int pendingFrames() {
@Override
public boolean hasFrame() {
- return this.outputFrames.size() > 0;
+ return !this.outputFrames.isEmpty();
}
@Override
@@ -234,7 +218,7 @@ public boolean isFull() {
@Override
public boolean noneSubmitted() {
- return this.confirmedTxs.size() == 0 && this.pendingTxs.size() == 0;
+ return this.confirmedTxs.isEmpty() && this.pendingTxs.isEmpty();
}
@Override
@@ -248,7 +232,7 @@ public boolean isTimeout(BigInteger blockNumber) {
}
private boolean isTimeout() {
- if (this.confirmedTxs.size() == 0) {
+ if (this.confirmedTxs.isEmpty()) {
return false;
}
var min = BigInteger.valueOf(Long.MAX_VALUE);
@@ -301,12 +285,13 @@ public void close() {
}
}
+ @SuppressWarnings({"rawtypes", "unchecked"})
private Tuple2 blockToBatch(EthBlock.Block block) {
final List blockTxs = block.getTransactions();
- if (blockTxs == null || blockTxs.size() == 0) {
+ if (blockTxs == null || blockTxs.isEmpty()) {
throw new ChannelException(String.format("block %s has no transations", block.getHash()));
}
- final EthBlock.TransactionObject depositTxObj = (EthBlock.TransactionObject) blockTxs.get(0);
+ final EthBlock.TransactionObject depositTxObj = (EthBlock.TransactionObject) blockTxs.getFirst();
if (!DEPOSIT_TX_TYPE.equalsIgnoreCase(depositTxObj.getType())) {
throw new ChannelException("block txs not contains deposit tx");
}
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelManager.java b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelManager.java
index c8955abd..a5674dca 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelManager.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ChannelManager.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.channel;
import io.optimism.batcher.compressor.CompressorConfig;
@@ -181,7 +165,7 @@ public void txConfirmed(final Frame tx, final BlockId inclusionBlock) {
}
final var ch = this.txChMap.remove(code);
List blocks = ch.txConfirmed(tx, inclusionBlock);
- if (blocks != null && blocks.size() > 0) {
+ if (blocks != null && !blocks.isEmpty()) {
this.blocks.addAll(blocks);
}
if (!ch.isFullySubmitted()) {
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ReorgException.java b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ReorgException.java
index 8d673254..9a782daf 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/channel/ReorgException.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/channel/ReorgException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.channel;
/**
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/cli/Cli.java b/hildr-batcher/src/main/java/io/optimism/batcher/cli/Cli.java
index e4fc3f4d..ad3e93d9 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/cli/Cli.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/cli/Cli.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.cli;
import io.micrometer.tracing.Tracer;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/compressor/Compressor.java b/hildr-batcher/src/main/java/io/optimism/batcher/compressor/Compressor.java
index 6b12e179..50d719b1 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/compressor/Compressor.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/compressor/Compressor.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.compressor;
import java.io.Closeable;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/compressor/CompressorConfig.java b/hildr-batcher/src/main/java/io/optimism/batcher/compressor/CompressorConfig.java
index 3c278896..8d1b4097 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/compressor/CompressorConfig.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/compressor/CompressorConfig.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.compressor;
import io.optimism.batcher.config.Config;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/compressor/Compressors.java b/hildr-batcher/src/main/java/io/optimism/batcher/compressor/Compressors.java
index 3082e7c9..afee1ae4 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/compressor/Compressors.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/compressor/Compressors.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.compressor;
import io.optimism.batcher.exception.UnsupportedException;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/compressor/RatioCompressor.java b/hildr-batcher/src/main/java/io/optimism/batcher/compressor/RatioCompressor.java
index 769119bf..cea18bd5 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/compressor/RatioCompressor.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/compressor/RatioCompressor.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.compressor;
import io.optimism.batcher.compressor.exception.CompressorException;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/compressor/exception/CompressorException.java b/hildr-batcher/src/main/java/io/optimism/batcher/compressor/exception/CompressorException.java
index b2ca998e..dc365559 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/compressor/exception/CompressorException.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/compressor/exception/CompressorException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.compressor.exception;
/**
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/config/Config.java b/hildr-batcher/src/main/java/io/optimism/batcher/config/Config.java
index 133c91fd..cc9bd77f 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/config/Config.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/config/Config.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.config;
import io.optimism.batcher.telemetry.BatcherMetrics;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/exception/BatcherExecutionException.java b/hildr-batcher/src/main/java/io/optimism/batcher/exception/BatcherExecutionException.java
index 21eb144c..ae3a6048 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/exception/BatcherExecutionException.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/exception/BatcherExecutionException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.exception;
/**
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/exception/UnsupportedException.java b/hildr-batcher/src/main/java/io/optimism/batcher/exception/UnsupportedException.java
index 40bc7bef..1c035c88 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/exception/UnsupportedException.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/exception/UnsupportedException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.exception;
/**
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/exception/Web3jCallException.java b/hildr-batcher/src/main/java/io/optimism/batcher/exception/Web3jCallException.java
index 6feca97c..b894e70b 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/exception/Web3jCallException.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/exception/Web3jCallException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.exception;
/**
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/loader/BlockLoader.java b/hildr-batcher/src/main/java/io/optimism/batcher/loader/BlockLoader.java
index 9e7d809d..a8707b4c 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/loader/BlockLoader.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/loader/BlockLoader.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.loader;
import io.optimism.batcher.channel.ReorgException;
@@ -164,8 +148,8 @@ Tuple2 calculateL2BlockRangeToStore() {
}
L2BlockRef l2BlockToBlockRef(final EthBlock.Block block, Genesis genesis) {
- BlockId l1Origin = null;
- BigInteger sequenceNumber = null;
+ BlockId l1Origin;
+ BigInteger sequenceNumber;
if (block.getNumber().equals(genesis.l2().number())) {
if (!block.getHash().equals(genesis.l2().hash())) {
throw new BlockLoaderException(String.format(
@@ -181,7 +165,7 @@ L2BlockRef l2BlockToBlockRef(final EthBlock.Block block, Genesis genesis) {
String.format("l2 block is missing L1 info deposit tx, block hash: %s", block.getHash()));
}
EthBlock.TransactionObject tx =
- (EthBlock.TransactionObject) txs.get(0).get();
+ (EthBlock.TransactionObject) txs.getFirst().get();
if (!DEPOSIT_TX_TYPE.equalsIgnoreCase(tx.getType())) {
throw new BlockLoaderException(
String.format("first payload tx has unexpected tx type: %s", tx.getType()));
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/loader/BlockLoaderException.java b/hildr-batcher/src/main/java/io/optimism/batcher/loader/BlockLoaderException.java
index c2b9b0a0..56669ffc 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/loader/BlockLoaderException.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/loader/BlockLoaderException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.loader;
/**
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/loader/LoaderConfig.java b/hildr-batcher/src/main/java/io/optimism/batcher/loader/LoaderConfig.java
index 667b5fb3..2333fc2d 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/loader/LoaderConfig.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/loader/LoaderConfig.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.loader;
import io.optimism.batcher.config.Config;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/loader/SyncStatusException.java b/hildr-batcher/src/main/java/io/optimism/batcher/loader/SyncStatusException.java
index 5415e297..a2b7a6ee 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/loader/SyncStatusException.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/loader/SyncStatusException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.loader;
/**
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/publisher/ChannelDataPublisher.java b/hildr-batcher/src/main/java/io/optimism/batcher/publisher/ChannelDataPublisher.java
index 4f455f99..ac176659 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/publisher/ChannelDataPublisher.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/publisher/ChannelDataPublisher.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.publisher;
import io.optimism.batcher.exception.Web3jCallException;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/publisher/NoDataPublishException.java b/hildr-batcher/src/main/java/io/optimism/batcher/publisher/NoDataPublishException.java
index e09976dd..7cf0d421 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/publisher/NoDataPublishException.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/publisher/NoDataPublishException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.publisher;
/**
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/publisher/PublishException.java b/hildr-batcher/src/main/java/io/optimism/batcher/publisher/PublishException.java
index 0f1e401a..30e49b32 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/publisher/PublishException.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/publisher/PublishException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.publisher;
/**
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/publisher/PublisherConfig.java b/hildr-batcher/src/main/java/io/optimism/batcher/publisher/PublisherConfig.java
index fb6e68e1..cb6ac784 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/publisher/PublisherConfig.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/publisher/PublisherConfig.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.publisher;
import io.optimism.batcher.config.Config;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetrics.java b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetrics.java
index 4dcd7e15..a1825cc9 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetrics.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetrics.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.telemetry;
import io.optimism.type.L1BlockRef;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetricsRegistry.java b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetricsRegistry.java
index 42986fe4..87876815 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetricsRegistry.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetricsRegistry.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.telemetry;
import io.micrometer.core.instrument.MeterRegistry;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetricsServer.java b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetricsServer.java
index 2ae557a6..03c14a40 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetricsServer.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherMetricsServer.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.telemetry;
import io.micrometer.core.instrument.MeterRegistry;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherPrometheusMetrics.java b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherPrometheusMetrics.java
index c7e4b8cd..74665581 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherPrometheusMetrics.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/BatcherPrometheusMetrics.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.telemetry;
import io.micrometer.core.instrument.Counter;
@@ -275,6 +259,7 @@ private void recordRef(String layer, String type, BigInteger number, BigInteger
hashGuage.getAndSet(Numeric.toBigInt(hash).longValue());
}
+ @SuppressWarnings("rawtypes")
private long estimateBatchSize(EthBlock.Block block) {
int size = 70;
var txs = block.getTransactions();
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/NoopBatcherMetrics.java b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/NoopBatcherMetrics.java
index ac11c87f..cb9f45f7 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/NoopBatcherMetrics.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/NoopBatcherMetrics.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.telemetry;
import io.optimism.type.L1BlockRef;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/TxMetrics.java b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/TxMetrics.java
index 9c6d07d9..a7690aef 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/TxMetrics.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/TxMetrics.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.telemetry;
import java.math.BigInteger;
diff --git a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/TxPrometheusMetrics.java b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/TxPrometheusMetrics.java
index f0f730e9..d01eaa73 100644
--- a/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/TxPrometheusMetrics.java
+++ b/hildr-batcher/src/main/java/io/optimism/batcher/telemetry/TxPrometheusMetrics.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.telemetry;
import io.micrometer.core.instrument.MeterRegistry;
diff --git a/hildr-batcher/src/main/java/io/optimism/type/OpEthSyncStatusRes.java b/hildr-batcher/src/main/java/io/optimism/type/OpEthSyncStatusRes.java
index f12976cd..d53dc600 100644
--- a/hildr-batcher/src/main/java/io/optimism/type/OpEthSyncStatusRes.java
+++ b/hildr-batcher/src/main/java/io/optimism/type/OpEthSyncStatusRes.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.type;
import java.util.Objects;
diff --git a/hildr-batcher/src/main/java/io/optimism/type/TxCandidate.java b/hildr-batcher/src/main/java/io/optimism/type/TxCandidate.java
index 63a36d8f..074d71a5 100644
--- a/hildr-batcher/src/main/java/io/optimism/type/TxCandidate.java
+++ b/hildr-batcher/src/main/java/io/optimism/type/TxCandidate.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.type;
/**
diff --git a/hildr-batcher/src/test/java/io/optimism/batcher/TestConstants.java b/hildr-batcher/src/test/java/io/optimism/batcher/TestConstants.java
index 812bece1..2400d444 100644
--- a/hildr-batcher/src/test/java/io/optimism/batcher/TestConstants.java
+++ b/hildr-batcher/src/test/java/io/optimism/batcher/TestConstants.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher;
import java.util.Map;
diff --git a/hildr-batcher/src/test/java/io/optimism/batcher/loader/BlockLoaderTest.java b/hildr-batcher/src/test/java/io/optimism/batcher/loader/BlockLoaderTest.java
index 5710e803..ca43813d 100644
--- a/hildr-batcher/src/test/java/io/optimism/batcher/loader/BlockLoaderTest.java
+++ b/hildr-batcher/src/test/java/io/optimism/batcher/loader/BlockLoaderTest.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.loader;
import static org.junit.jupiter.api.Assertions.assertEquals;
diff --git a/hildr-batcher/src/test/java/io/optimism/batcher/publisher/ChannelDataPublisherTest.java b/hildr-batcher/src/test/java/io/optimism/batcher/publisher/ChannelDataPublisherTest.java
index 183b8118..1f513390 100644
--- a/hildr-batcher/src/test/java/io/optimism/batcher/publisher/ChannelDataPublisherTest.java
+++ b/hildr-batcher/src/test/java/io/optimism/batcher/publisher/ChannelDataPublisherTest.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 q315xia@163.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.batcher.publisher;
/**
diff --git a/hildr-node/build.gradle b/hildr-node/build.gradle
index 2d303097..d25dfec5 100644
--- a/hildr-node/build.gradle
+++ b/hildr-node/build.gradle
@@ -245,13 +245,6 @@ spotless {
palantirJavaFormat('2.38.0')
// fix formatting of type annotations
formatAnnotations()
- // make sure every file has the following copyright header.
- // optionally, Spotless can set copyright years by digging
- // through git history (see "license" section below)
- licenseHeaderFile(project(":").file("config/spotless/java.license")).named('hildr').onlyIfContentMatches('/*\n' +
- ' * Copyright 2023 281165273grape@gmail.com')
- licenseHeaderFile(project(":").file("config/spotless/besu.license")).named('besu').onlyIfContentMatches('/*\n' +
- ' * Copyright ConsenSys AG')
importOrder()
diff --git a/hildr-node/src/main/java/io/optimism/Hildr.java b/hildr-node/src/main/java/io/optimism/Hildr.java
index f98f7e80..617a60fc 100644
--- a/hildr-node/src/main/java/io/optimism/Hildr.java
+++ b/hildr-node/src/main/java/io/optimism/Hildr.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism;
import io.optimism.cli.Cli;
diff --git a/hildr-node/src/main/java/io/optimism/cli/Cli.java b/hildr-node/src/main/java/io/optimism/cli/Cli.java
index 0ff0971a..7c4e2a9d 100644
--- a/hildr-node/src/main/java/io/optimism/cli/Cli.java
+++ b/hildr-node/src/main/java/io/optimism/cli/Cli.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.cli;
import ch.qos.logback.classic.Level;
diff --git a/hildr-node/src/main/java/io/optimism/cli/typeconverter/SyncModeConverter.java b/hildr-node/src/main/java/io/optimism/cli/typeconverter/SyncModeConverter.java
index a711b791..77d90519 100644
--- a/hildr-node/src/main/java/io/optimism/cli/typeconverter/SyncModeConverter.java
+++ b/hildr-node/src/main/java/io/optimism/cli/typeconverter/SyncModeConverter.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.cli.typeconverter;
import io.optimism.config.Config;
diff --git a/hildr-node/src/main/java/io/optimism/common/AbiFileLoadException.java b/hildr-node/src/main/java/io/optimism/common/AbiFileLoadException.java
index 365460fa..71ab5395 100644
--- a/hildr-node/src/main/java/io/optimism/common/AbiFileLoadException.java
+++ b/hildr-node/src/main/java/io/optimism/common/AbiFileLoadException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.common;
/**
diff --git a/hildr-node/src/main/java/io/optimism/common/AttributesDepositedCall.java b/hildr-node/src/main/java/io/optimism/common/AttributesDepositedCall.java
index 686830c0..24fe8b91 100644
--- a/hildr-node/src/main/java/io/optimism/common/AttributesDepositedCall.java
+++ b/hildr-node/src/main/java/io/optimism/common/AttributesDepositedCall.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.common;
import java.math.BigInteger;
diff --git a/hildr-node/src/main/java/io/optimism/common/BlockInfo.java b/hildr-node/src/main/java/io/optimism/common/BlockInfo.java
index ccf29396..6d0b0bce 100644
--- a/hildr-node/src/main/java/io/optimism/common/BlockInfo.java
+++ b/hildr-node/src/main/java/io/optimism/common/BlockInfo.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.common;
import io.optimism.engine.ExecutionPayload;
diff --git a/hildr-node/src/main/java/io/optimism/common/BlockNotIncludedException.java b/hildr-node/src/main/java/io/optimism/common/BlockNotIncludedException.java
index f9373862..46440da3 100644
--- a/hildr-node/src/main/java/io/optimism/common/BlockNotIncludedException.java
+++ b/hildr-node/src/main/java/io/optimism/common/BlockNotIncludedException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.common;
/**
diff --git a/hildr-node/src/main/java/io/optimism/common/Epoch.java b/hildr-node/src/main/java/io/optimism/common/Epoch.java
index 479a5da1..e06f61cd 100644
--- a/hildr-node/src/main/java/io/optimism/common/Epoch.java
+++ b/hildr-node/src/main/java/io/optimism/common/Epoch.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.common;
import java.math.BigInteger;
diff --git a/hildr-node/src/main/java/io/optimism/common/HildrServiceExecutionException.java b/hildr-node/src/main/java/io/optimism/common/HildrServiceExecutionException.java
index 062314b9..53a45fbe 100644
--- a/hildr-node/src/main/java/io/optimism/common/HildrServiceExecutionException.java
+++ b/hildr-node/src/main/java/io/optimism/common/HildrServiceExecutionException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.common;
/**
diff --git a/hildr-node/src/main/java/io/optimism/config/Config.java b/hildr-node/src/main/java/io/optimism/config/Config.java
index e329d792..5ab153af 100644
--- a/hildr-node/src/main/java/io/optimism/config/Config.java
+++ b/hildr-node/src/main/java/io/optimism/config/Config.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.config;
import static java.util.Map.entry;
diff --git a/hildr-node/src/main/java/io/optimism/config/ConfigLoadException.java b/hildr-node/src/main/java/io/optimism/config/ConfigLoadException.java
index 9f47bfde..aa5cdb37 100644
--- a/hildr-node/src/main/java/io/optimism/config/ConfigLoadException.java
+++ b/hildr-node/src/main/java/io/optimism/config/ConfigLoadException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.config;
/**
diff --git a/hildr-node/src/main/java/io/optimism/config/InvalidSyncModeException.java b/hildr-node/src/main/java/io/optimism/config/InvalidSyncModeException.java
index d7683be1..96adb86b 100644
--- a/hildr-node/src/main/java/io/optimism/config/InvalidSyncModeException.java
+++ b/hildr-node/src/main/java/io/optimism/config/InvalidSyncModeException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.config;
/**
diff --git a/hildr-node/src/main/java/io/optimism/derive/Pipeline.java b/hildr-node/src/main/java/io/optimism/derive/Pipeline.java
index fa55a276..ab8fed99 100644
--- a/hildr-node/src/main/java/io/optimism/derive/Pipeline.java
+++ b/hildr-node/src/main/java/io/optimism/derive/Pipeline.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.derive;
import io.optimism.config.Config;
diff --git a/hildr-node/src/main/java/io/optimism/derive/PurgeableIterator.java b/hildr-node/src/main/java/io/optimism/derive/PurgeableIterator.java
index ff76f31f..5f87eae5 100644
--- a/hildr-node/src/main/java/io/optimism/derive/PurgeableIterator.java
+++ b/hildr-node/src/main/java/io/optimism/derive/PurgeableIterator.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.derive;
/**
diff --git a/hildr-node/src/main/java/io/optimism/derive/State.java b/hildr-node/src/main/java/io/optimism/derive/State.java
index da56b509..7bb380dc 100644
--- a/hildr-node/src/main/java/io/optimism/derive/State.java
+++ b/hildr-node/src/main/java/io/optimism/derive/State.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.derive;
import io.optimism.common.BlockInfo;
diff --git a/hildr-node/src/main/java/io/optimism/derive/stages/Attributes.java b/hildr-node/src/main/java/io/optimism/derive/stages/Attributes.java
index 1c6767aa..7f37e2e3 100644
--- a/hildr-node/src/main/java/io/optimism/derive/stages/Attributes.java
+++ b/hildr-node/src/main/java/io/optimism/derive/stages/Attributes.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.derive.stages;
import io.optimism.common.BlockNotIncludedException;
diff --git a/hildr-node/src/main/java/io/optimism/derive/stages/BatcherTransactions.java b/hildr-node/src/main/java/io/optimism/derive/stages/BatcherTransactions.java
index f66fba9b..d48f0acd 100644
--- a/hildr-node/src/main/java/io/optimism/derive/stages/BatcherTransactions.java
+++ b/hildr-node/src/main/java/io/optimism/derive/stages/BatcherTransactions.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.derive.stages;
import io.optimism.derive.PurgeableIterator;
diff --git a/hildr-node/src/main/java/io/optimism/derive/stages/Batches.java b/hildr-node/src/main/java/io/optimism/derive/stages/Batches.java
index c8af3237..f3fca0fe 100644
--- a/hildr-node/src/main/java/io/optimism/derive/stages/Batches.java
+++ b/hildr-node/src/main/java/io/optimism/derive/stages/Batches.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.derive.stages;
import com.google.common.collect.Lists;
diff --git a/hildr-node/src/main/java/io/optimism/derive/stages/Channels.java b/hildr-node/src/main/java/io/optimism/derive/stages/Channels.java
index 7ecda6fd..9337516e 100644
--- a/hildr-node/src/main/java/io/optimism/derive/stages/Channels.java
+++ b/hildr-node/src/main/java/io/optimism/derive/stages/Channels.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.derive.stages;
import com.google.common.collect.Lists;
@@ -127,7 +111,7 @@ private Optional processFrames() {
while (!this.frameBank.isEmpty()) {
// Append the frame to the channel
- Frame frame = this.frameBank.remove(0);
+ Frame frame = this.frameBank.removeFirst();
BigInteger frameChannelId = frame.channelId();
this.pushFrame(frame);
this.prune();
@@ -145,7 +129,7 @@ private Optional removePendingChannel() {
if (this.pendingChannels.isEmpty()) {
return Optional.empty();
} else {
- return Optional.of(this.pendingChannels.remove(0));
+ return Optional.of(this.pendingChannels.removeFirst());
}
}
diff --git a/hildr-node/src/main/java/io/optimism/derive/stages/DecompressZlibException.java b/hildr-node/src/main/java/io/optimism/derive/stages/DecompressZlibException.java
index 15733596..dadb9640 100644
--- a/hildr-node/src/main/java/io/optimism/derive/stages/DecompressZlibException.java
+++ b/hildr-node/src/main/java/io/optimism/derive/stages/DecompressZlibException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.derive.stages;
/**
diff --git a/hildr-node/src/main/java/io/optimism/derive/stages/L1InfoNotFoundException.java b/hildr-node/src/main/java/io/optimism/derive/stages/L1InfoNotFoundException.java
index a27ade55..c3e92e4f 100644
--- a/hildr-node/src/main/java/io/optimism/derive/stages/L1InfoNotFoundException.java
+++ b/hildr-node/src/main/java/io/optimism/derive/stages/L1InfoNotFoundException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.derive.stages;
/**
diff --git a/hildr-node/src/main/java/io/optimism/driver/Driver.java b/hildr-node/src/main/java/io/optimism/driver/Driver.java
index 90949f53..31fb7edf 100644
--- a/hildr-node/src/main/java/io/optimism/driver/Driver.java
+++ b/hildr-node/src/main/java/io/optimism/driver/Driver.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.driver;
import static java.lang.Thread.sleep;
diff --git a/hildr-node/src/main/java/io/optimism/driver/EngineDriver.java b/hildr-node/src/main/java/io/optimism/driver/EngineDriver.java
index 70b2655e..c1eb3d07 100644
--- a/hildr-node/src/main/java/io/optimism/driver/EngineDriver.java
+++ b/hildr-node/src/main/java/io/optimism/driver/EngineDriver.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.driver;
import io.optimism.common.BlockInfo;
diff --git a/hildr-node/src/main/java/io/optimism/driver/ForkchoiceUpdateException.java b/hildr-node/src/main/java/io/optimism/driver/ForkchoiceUpdateException.java
index 51ad80ab..2bdca386 100644
--- a/hildr-node/src/main/java/io/optimism/driver/ForkchoiceUpdateException.java
+++ b/hildr-node/src/main/java/io/optimism/driver/ForkchoiceUpdateException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.driver;
/**
diff --git a/hildr-node/src/main/java/io/optimism/driver/HeadInfo.java b/hildr-node/src/main/java/io/optimism/driver/HeadInfo.java
index 83e19345..918c4d5b 100644
--- a/hildr-node/src/main/java/io/optimism/driver/HeadInfo.java
+++ b/hildr-node/src/main/java/io/optimism/driver/HeadInfo.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.driver;
import io.optimism.common.AttributesDepositedCall;
diff --git a/hildr-node/src/main/java/io/optimism/driver/InvalidAttributesException.java b/hildr-node/src/main/java/io/optimism/driver/InvalidAttributesException.java
index 23977355..bfce8e29 100644
--- a/hildr-node/src/main/java/io/optimism/driver/InvalidAttributesException.java
+++ b/hildr-node/src/main/java/io/optimism/driver/InvalidAttributesException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.driver;
/**
diff --git a/hildr-node/src/main/java/io/optimism/driver/InvalidExecutionPayloadException.java b/hildr-node/src/main/java/io/optimism/driver/InvalidExecutionPayloadException.java
index b9f4dc36..cddd0e55 100644
--- a/hildr-node/src/main/java/io/optimism/driver/InvalidExecutionPayloadException.java
+++ b/hildr-node/src/main/java/io/optimism/driver/InvalidExecutionPayloadException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.driver;
/**
diff --git a/hildr-node/src/main/java/io/optimism/driver/InvalidPayloadAttributesException.java b/hildr-node/src/main/java/io/optimism/driver/InvalidPayloadAttributesException.java
index 24c6fc7b..f894e36f 100644
--- a/hildr-node/src/main/java/io/optimism/driver/InvalidPayloadAttributesException.java
+++ b/hildr-node/src/main/java/io/optimism/driver/InvalidPayloadAttributesException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.driver;
/**
diff --git a/hildr-node/src/main/java/io/optimism/driver/L1AttributesDepositedTxNotFoundException.java b/hildr-node/src/main/java/io/optimism/driver/L1AttributesDepositedTxNotFoundException.java
index 86e9f313..8c518d36 100644
--- a/hildr-node/src/main/java/io/optimism/driver/L1AttributesDepositedTxNotFoundException.java
+++ b/hildr-node/src/main/java/io/optimism/driver/L1AttributesDepositedTxNotFoundException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.driver;
/**
diff --git a/hildr-node/src/main/java/io/optimism/driver/PayloadIdNotReturnedException.java b/hildr-node/src/main/java/io/optimism/driver/PayloadIdNotReturnedException.java
index c543f823..d7800640 100644
--- a/hildr-node/src/main/java/io/optimism/driver/PayloadIdNotReturnedException.java
+++ b/hildr-node/src/main/java/io/optimism/driver/PayloadIdNotReturnedException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.driver;
/**
diff --git a/hildr-node/src/main/java/io/optimism/engine/Engine.java b/hildr-node/src/main/java/io/optimism/engine/Engine.java
index e2639549..5833b517 100644
--- a/hildr-node/src/main/java/io/optimism/engine/Engine.java
+++ b/hildr-node/src/main/java/io/optimism/engine/Engine.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.engine;
import io.optimism.engine.ExecutionPayload.PayloadAttributes;
diff --git a/hildr-node/src/main/java/io/optimism/engine/EngineApi.java b/hildr-node/src/main/java/io/optimism/engine/EngineApi.java
index cc4a1af9..00a03d89 100644
--- a/hildr-node/src/main/java/io/optimism/engine/EngineApi.java
+++ b/hildr-node/src/main/java/io/optimism/engine/EngineApi.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.engine;
import io.jsonwebtoken.Jwts;
diff --git a/hildr-node/src/main/java/io/optimism/engine/ExecutionPayload.java b/hildr-node/src/main/java/io/optimism/engine/ExecutionPayload.java
index fe1224e0..ed94f571 100644
--- a/hildr-node/src/main/java/io/optimism/engine/ExecutionPayload.java
+++ b/hildr-node/src/main/java/io/optimism/engine/ExecutionPayload.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.engine;
import io.optimism.common.Epoch;
diff --git a/hildr-node/src/main/java/io/optimism/engine/ForkChoiceUpdate.java b/hildr-node/src/main/java/io/optimism/engine/ForkChoiceUpdate.java
index 48d74e11..7f68bb80 100644
--- a/hildr-node/src/main/java/io/optimism/engine/ForkChoiceUpdate.java
+++ b/hildr-node/src/main/java/io/optimism/engine/ForkChoiceUpdate.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.engine;
import io.optimism.engine.ExecutionPayload.PayloadStatus;
diff --git a/hildr-node/src/main/java/io/optimism/engine/OpEthExecutionPayload.java b/hildr-node/src/main/java/io/optimism/engine/OpEthExecutionPayload.java
index d7f57dca..653e7b7a 100644
--- a/hildr-node/src/main/java/io/optimism/engine/OpEthExecutionPayload.java
+++ b/hildr-node/src/main/java/io/optimism/engine/OpEthExecutionPayload.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.engine;
import com.fasterxml.jackson.core.JsonParser;
diff --git a/hildr-node/src/main/java/io/optimism/engine/OpEthForkChoiceUpdate.java b/hildr-node/src/main/java/io/optimism/engine/OpEthForkChoiceUpdate.java
index dbd463d5..21ffc347 100644
--- a/hildr-node/src/main/java/io/optimism/engine/OpEthForkChoiceUpdate.java
+++ b/hildr-node/src/main/java/io/optimism/engine/OpEthForkChoiceUpdate.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.engine;
import io.optimism.engine.ForkChoiceUpdate.ForkChoiceUpdateRes;
diff --git a/hildr-node/src/main/java/io/optimism/engine/OpEthPayloadStatus.java b/hildr-node/src/main/java/io/optimism/engine/OpEthPayloadStatus.java
index a251e6c9..2e0ab5ce 100644
--- a/hildr-node/src/main/java/io/optimism/engine/OpEthPayloadStatus.java
+++ b/hildr-node/src/main/java/io/optimism/engine/OpEthPayloadStatus.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.engine;
import io.optimism.engine.ExecutionPayload.PayloadStatus;
diff --git a/hildr-node/src/main/java/io/optimism/l1/BlockIsPreLondonException.java b/hildr-node/src/main/java/io/optimism/l1/BlockIsPreLondonException.java
index fc6dba4a..e8a26b46 100644
--- a/hildr-node/src/main/java/io/optimism/l1/BlockIsPreLondonException.java
+++ b/hildr-node/src/main/java/io/optimism/l1/BlockIsPreLondonException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.l1;
/**
diff --git a/hildr-node/src/main/java/io/optimism/l1/BlockUpdate.java b/hildr-node/src/main/java/io/optimism/l1/BlockUpdate.java
index 54165b6b..ae996132 100644
--- a/hildr-node/src/main/java/io/optimism/l1/BlockUpdate.java
+++ b/hildr-node/src/main/java/io/optimism/l1/BlockUpdate.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.l1;
import java.math.BigInteger;
diff --git a/hildr-node/src/main/java/io/optimism/l1/ChainWatcher.java b/hildr-node/src/main/java/io/optimism/l1/ChainWatcher.java
index 3c90a34d..321e0300 100644
--- a/hildr-node/src/main/java/io/optimism/l1/ChainWatcher.java
+++ b/hildr-node/src/main/java/io/optimism/l1/ChainWatcher.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.l1;
import io.optimism.common.BlockInfo;
diff --git a/hildr-node/src/main/java/io/optimism/l1/DepositsNotFoundException.java b/hildr-node/src/main/java/io/optimism/l1/DepositsNotFoundException.java
index 141fad71..8fad12e5 100644
--- a/hildr-node/src/main/java/io/optimism/l1/DepositsNotFoundException.java
+++ b/hildr-node/src/main/java/io/optimism/l1/DepositsNotFoundException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.l1;
/**
diff --git a/hildr-node/src/main/java/io/optimism/l1/InnerWatcher.java b/hildr-node/src/main/java/io/optimism/l1/InnerWatcher.java
index fb3c237b..5863599d 100644
--- a/hildr-node/src/main/java/io/optimism/l1/InnerWatcher.java
+++ b/hildr-node/src/main/java/io/optimism/l1/InnerWatcher.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.l1;
import com.google.common.util.concurrent.AbstractExecutionThreadService;
@@ -185,7 +169,7 @@ private void getMetadataFromL2(BigInteger l2StartBlock) {
throw new L1AttributesDepositedTxNotFoundException();
}
EthBlock.TransactionObject tx =
- (EthBlock.TransactionObject) block.getTransactions().get(0).get();
+ (EthBlock.TransactionObject) block.getTransactions().getFirst().get();
final byte[] input = Numeric.hexStringToByteArray(tx.getInput());
final String batchSender = Numeric.toHexString(Arrays.copyOfRange(input, 176, 196));
@@ -316,7 +300,7 @@ private void updateSystemConfig() throws ExecutionException, InterruptedExceptio
if (updates.getLogs().isEmpty()) {
this.systemConfigUpdate = new Tuple2<>(toBlock, null);
} else {
- LogResult> update = updates.getLogs().iterator().next();
+ LogResult> update = updates.getLogs().getFirst();
BigInteger updateBlock = ((LogObject) update).getBlockNumber();
SystemConfigUpdate configUpdate = SystemConfigUpdate.tryFrom((LogObject) update);
if (updateBlock == null) {
@@ -456,7 +440,7 @@ private List getDeposits(BigInteger blockNum)
var userDepositeds = InnerWatcher.this.deposits.computeIfAbsent(num, k -> new ArrayList<>());
userDepositeds.add(userDeposited);
} else {
- throw new IllegalStateException("Unexpected result type: " + log.get() + " required LogObject");
+ throw new IllegalStateException("Unexpected result type: %s required LogObject".formatted(log.get()));
}
});
var max = (int) endBlock.subtract(blockNum).add(BigInteger.ONE).longValue();
diff --git a/hildr-node/src/main/java/io/optimism/l1/InvalidSystemConfigUpdateException.java b/hildr-node/src/main/java/io/optimism/l1/InvalidSystemConfigUpdateException.java
index 6f153efa..6cb3d50d 100644
--- a/hildr-node/src/main/java/io/optimism/l1/InvalidSystemConfigUpdateException.java
+++ b/hildr-node/src/main/java/io/optimism/l1/InvalidSystemConfigUpdateException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.l1;
/**
diff --git a/hildr-node/src/main/java/io/optimism/l1/L1Info.java b/hildr-node/src/main/java/io/optimism/l1/L1Info.java
index aad66083..40b698d1 100644
--- a/hildr-node/src/main/java/io/optimism/l1/L1Info.java
+++ b/hildr-node/src/main/java/io/optimism/l1/L1Info.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.l1;
import static org.web3j.protocol.core.methods.response.EthBlock.Block;
diff --git a/hildr-node/src/main/java/io/optimism/l1/SystemConfigUpdate.java b/hildr-node/src/main/java/io/optimism/l1/SystemConfigUpdate.java
index 4928c402..250e59a0 100644
--- a/hildr-node/src/main/java/io/optimism/l1/SystemConfigUpdate.java
+++ b/hildr-node/src/main/java/io/optimism/l1/SystemConfigUpdate.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.l1;
import java.math.BigInteger;
diff --git a/hildr-node/src/main/java/io/optimism/network/BlockV1TopicHandler.java b/hildr-node/src/main/java/io/optimism/network/BlockV1TopicHandler.java
index 15e8d58f..36e465bc 100644
--- a/hildr-node/src/main/java/io/optimism/network/BlockV1TopicHandler.java
+++ b/hildr-node/src/main/java/io/optimism/network/BlockV1TopicHandler.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.network;
import static org.web3j.crypto.Sign.recoverFromSignature;
diff --git a/hildr-node/src/main/java/io/optimism/network/BlockV2TopicHandler.java b/hildr-node/src/main/java/io/optimism/network/BlockV2TopicHandler.java
index 26838f1c..aa795c0a 100644
--- a/hildr-node/src/main/java/io/optimism/network/BlockV2TopicHandler.java
+++ b/hildr-node/src/main/java/io/optimism/network/BlockV2TopicHandler.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.network;
import static org.web3j.crypto.Sign.recoverFromSignature;
diff --git a/hildr-node/src/main/java/io/optimism/network/DecodingException.java b/hildr-node/src/main/java/io/optimism/network/DecodingException.java
index 073397ba..f7d718ff 100644
--- a/hildr-node/src/main/java/io/optimism/network/DecodingException.java
+++ b/hildr-node/src/main/java/io/optimism/network/DecodingException.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.network;
/**
diff --git a/hildr-node/src/main/java/io/optimism/network/DiscV5Service.java b/hildr-node/src/main/java/io/optimism/network/DiscV5Service.java
index c52ecc0d..c319d70a 100644
--- a/hildr-node/src/main/java/io/optimism/network/DiscV5Service.java
+++ b/hildr-node/src/main/java/io/optimism/network/DiscV5Service.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.network;
import static java.util.stream.Collectors.toList;
diff --git a/hildr-node/src/main/java/io/optimism/network/ExecutionPayloadSSZ.java b/hildr-node/src/main/java/io/optimism/network/ExecutionPayloadSSZ.java
index 479c3315..5ba80ed9 100644
--- a/hildr-node/src/main/java/io/optimism/network/ExecutionPayloadSSZ.java
+++ b/hildr-node/src/main/java/io/optimism/network/ExecutionPayloadSSZ.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.network;
import java.math.BigInteger;
diff --git a/hildr-node/src/main/java/io/optimism/network/HildrNodeMetricsCategory.java b/hildr-node/src/main/java/io/optimism/network/HildrNodeMetricsCategory.java
index 0e69ee08..f68fbcfa 100644
--- a/hildr-node/src/main/java/io/optimism/network/HildrNodeMetricsCategory.java
+++ b/hildr-node/src/main/java/io/optimism/network/HildrNodeMetricsCategory.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.network;
import java.util.Optional;
diff --git a/hildr-node/src/main/java/io/optimism/network/NamedTopicHandler.java b/hildr-node/src/main/java/io/optimism/network/NamedTopicHandler.java
index 9d61f1a1..4f7aa9ba 100644
--- a/hildr-node/src/main/java/io/optimism/network/NamedTopicHandler.java
+++ b/hildr-node/src/main/java/io/optimism/network/NamedTopicHandler.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.network;
import tech.pegasys.teku.networking.p2p.gossip.TopicHandler;
diff --git a/hildr-node/src/main/java/io/optimism/network/NodeRecordConverter.java b/hildr-node/src/main/java/io/optimism/network/NodeRecordConverter.java
index 96df1864..2ebae028 100644
--- a/hildr-node/src/main/java/io/optimism/network/NodeRecordConverter.java
+++ b/hildr-node/src/main/java/io/optimism/network/NodeRecordConverter.java
@@ -1,19 +1,3 @@
-/*
- * Copyright ConsenSys Software Inc., 2022
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.network;
import java.net.InetSocketAddress;
diff --git a/hildr-node/src/main/java/io/optimism/network/OpStackEnrData.java b/hildr-node/src/main/java/io/optimism/network/OpStackEnrData.java
index 9bae6a2b..401f615e 100644
--- a/hildr-node/src/main/java/io/optimism/network/OpStackEnrData.java
+++ b/hildr-node/src/main/java/io/optimism/network/OpStackEnrData.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.network;
import com.google.common.base.Objects;
@@ -101,7 +85,7 @@ public int hashCode() {
@Override
public String toString() {
- return "OpStackEnrData{" + "chainId=" + chainId + ", version=" + version + '}';
+ return "OpStackEnrData{chainId=%s, version=%s}".formatted(chainId, version);
}
/**
diff --git a/hildr-node/src/main/java/io/optimism/network/OpStackNetwork.java b/hildr-node/src/main/java/io/optimism/network/OpStackNetwork.java
index c59d0678..34857943 100644
--- a/hildr-node/src/main/java/io/optimism/network/OpStackNetwork.java
+++ b/hildr-node/src/main/java/io/optimism/network/OpStackNetwork.java
@@ -1,19 +1,3 @@
-/*
- * Copyright 2023 281165273grape@gmail.com
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on
- * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the
- * specific language governing permissions and limitations under the License.
- */
-
package io.optimism.network;
import com.google.common.collect.ImmutableSet;
@@ -163,9 +147,9 @@ public void start() {
this.p2pNetwork
.start()
.thenAccept((Consumer