-
Notifications
You must be signed in to change notification settings - Fork 878
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new acceptance test to soak test BFT chains (#7023)
* Add new acceptance test to soak test BFT chains Signed-off-by: Matthew Whitehead <[email protected]> * Spotless Signed-off-by: Matthew Whitehead <[email protected]> * Tidy up a little with re-usable start and stop functions with built in delays Signed-off-by: Matthew Whitehead <[email protected]> * Add shanghai version of Simple Storage contract Signed-off-by: Matthew Whitehead <[email protected]> * Put commented gradle code back in. Fix the web3j example commands in .sol files Signed-off-by: Matthew Whitehead <[email protected]> * Spotless Signed-off-by: Matthew Whitehead <[email protected]> * Set publication artifacts to avoid clash Signed-off-by: Matthew Whitehead <[email protected]> * Exclude from regular acceptance tests Signed-off-by: Matthew Whitehead <[email protected]> * Add shanghai fork to the test. Stall the chain for less time to reduce the time taken to mine new blocks Signed-off-by: Matthew Whitehead <[email protected]> * Tidy up Signed-off-by: Matthew Whitehead <[email protected]> * Update acceptance-tests/tests/shanghai/build.gradle Co-authored-by: Simon Dudley <[email protected]> Signed-off-by: Matt Whitehead <[email protected]> * Tidy up var names Signed-off-by: Matthew Whitehead <[email protected]> * Fix ports for IBFT2 as well as QBFT Signed-off-by: Matthew Whitehead <[email protected]> * Remove maven publish spec, disable jar building for shanghai contract project Signed-off-by: Matthew Whitehead <[email protected]> * web3j version Signed-off-by: Matthew Whitehead <[email protected]> * Make fixed port optional when creating a BFT node Signed-off-by: Matthew Whitehead <[email protected]> * Only check artifact coordinates for those starting 'org.*' Signed-off-by: Matthew Whitehead <[email protected]> --------- Signed-off-by: Matthew Whitehead <[email protected]> Signed-off-by: Matt Whitehead <[email protected]> Signed-off-by: Matt Whitehead <[email protected]> Co-authored-by: Simon Dudley <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]>
- Loading branch information
1 parent
04f304f
commit b1ac5ac
Showing
13 changed files
with
494 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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,21 @@ | ||
|
||
plugins { | ||
id 'org.web3j' version '4.11.3' | ||
id 'org.web3j.solidity' version '0.4.1' | ||
} | ||
|
||
jar { enabled = true } | ||
|
||
web3j { | ||
generatedPackageName = 'org.hyperledger.besu.tests.web3j.generated' | ||
} | ||
|
||
sourceSets.main.solidity.srcDirs = [ | ||
"$projectDir/shanghaicontracts" | ||
] | ||
|
||
solidity { | ||
resolvePackages = false | ||
version '0.8.25' | ||
evmVersion 'shanghai' | ||
} |
31 changes: 31 additions & 0 deletions
31
acceptance-tests/tests/shanghai/shanghaicontracts/SimpleStorageShanghai.sol
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,31 @@ | ||
/* | ||
* Copyright contributors to Hyperledger Besu. | ||
* | ||
* 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 | ||
*/ | ||
pragma solidity >=0.8.20; | ||
|
||
// compile with: | ||
// solc SimpleStorageShanghai.sol --bin --abi --optimize --overwrite -o . | ||
// then create web3j wrappers with: | ||
// web3j generate solidity -b ./SimpleStorageShanghai.bin -a ./SimpleStorageShanghai.abi -o ../../../../../ -p org.hyperledger.besu.tests.web3j.generated | ||
contract SimpleStorageShanghai { | ||
uint data; | ||
|
||
function set(uint value) public { | ||
data = value; | ||
} | ||
|
||
function get() public view returns (uint) { | ||
return data; | ||
} | ||
} |
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.