forked from hyperledger/besu
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # .github/workflows/acceptance-tests.yml # .github/workflows/artifacts.yml # .github/workflows/codeql.yml # .github/workflows/docker.yml # .github/workflows/integration-tests.yml # .github/workflows/pre-review.yml # .github/workflows/reference-tests.yml # .github/workflows/release.yml # .github/workflows/sonarcloud.yml # besu/src/main/java/org/hyperledger/besu/services/TransactionSimulationServiceImpl.java # ethereum/core/src/main/java/org/hyperledger/besu/ethereum/transaction/CallParameter.java
- Loading branch information
Showing
13 changed files
with
221 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
|
||
name: develop pre-release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
env: | ||
GRADLE_OPTS: "-Dorg.gradle.parallel=true -Dorg.gradle.caching=true" | ||
|
||
jobs: | ||
artifacts: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- name: setup gradle | ||
uses: gradle/actions/setup-gradle@9e899d11ad247ec76be7a60bc1cf9d3abbb9e7f1 | ||
with: | ||
cache-disabled: true | ||
- name: assemble release | ||
run: | ||
./gradlew assemble | ||
- name: upload tarball | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 | ||
with: | ||
path: 'build/distributions/besu*.tar.gz' | ||
name: besu-develop.tar.gz | ||
compression-level: 0 | ||
- name: hashes | ||
id: hashes | ||
run: | | ||
cd build/distributions | ||
echo "zipSha=$(shasum -a 256 besu*.zip)" >> $GITHUB_OUTPUT | ||
echo "tarSha=$(shasum -a 256 besu*.tar.gz)" >> $GITHUB_OUTPUT | ||
- name: upload zipfile | ||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 | ||
with: | ||
path: 'build/distributions/besu*.zip' | ||
name: besu-develop.zip | ||
compression-level: 0 | ||
- name: Upload Release assets | ||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 | ||
with: | ||
prerelease: true | ||
name: develop | ||
tag_name: develop | ||
fail_on_unmatched_files: true | ||
append_body: false | ||
files: | | ||
build/distributions/besu*.tar.gz | ||
build/distributions/besu*.zip | ||
body: | | ||
This is an automated, bleeding edge build from the tip of ${{ github.ref_name }}. No promises. YOLO. | ||
${{steps.hashes.outputs.tarSha}} | ||
${{steps.hashes.outputs.zipSha}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/chain/BadBlockReason.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright Hyperledger Besu Contributors. | ||
* | ||
* 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 | ||
*/ | ||
package org.hyperledger.besu.ethereum.chain; | ||
|
||
public enum BadBlockReason { | ||
// Standard spec-related validation failures | ||
SPEC_VALIDATION_FAILURE, | ||
// This block is bad because it descends from a bad block | ||
DESCENDS_FROM_BAD_BLOCK, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.