Skip to content

Commit 1008537

Browse files
committed
Merge branch 'main' into bsc
2 parents 8ec8532 + 026c9b9 commit 1008537

22 files changed

+124
-680
lines changed

lib/ethereum/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ Create your own copy of `.env` file and edit it:
9292
# Make sure you are in aws-blockchain-node-runners/lib/ethereum
9393
cd lib/ethereum
9494
pwd
95-
cp .env-sample .env
95+
cp ./sample-configs/.env-geth-lighthouse .env
9696
nano .env
9797
```
98-
**NOTE:** Example configuration parameters are set in the local `.env-sample` file. You can find more examples inside `sample-configs` directory.
98+
**NOTE:** You can find more examples inside the `sample-configs` directory.
9999

100100

101101
4. Deploy common components such as IAM role, and Amazon S3 bucket to store data snapshots

lib/ethereum/lib/assets/docker-compose/docker-compose-besu-teku.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
besu_node:
55
environment:
66
- "JAVA_OPTS=-Xmx8g"
7-
image: hyperledger/besu:24.1.2-SNAPSHOT
7+
image: hyperledger/besu:24.3.0
88
container_name: execution
99
restart: always
1010
command:
@@ -43,7 +43,7 @@ services:
4343
environment:
4444
- "JAVA_OPTS=-Xmx4g"
4545
- "TEKU_OPTS=-XX:-HeapDumpOnOutOfMemoryError"
46-
image: consensys/teku:24.1.0-jdk17
46+
image: consensys/teku:24.3.0-jdk17
4747
container_name: consensus
4848
restart: always
4949
command:

lib/ethereum/lib/assets/docker-compose/docker-compose-erigon-lighthouse.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: "3"
33
services:
44
erigon_node:
5-
image: thorax/erigon:2.57.0-__IMAGE_ARCH__
5+
image: thorax/erigon:2.59.0-__IMAGE_ARCH__
66
container_name: execution
77
restart: always
88
command:
@@ -43,7 +43,7 @@ services:
4343
- "30303:30303/udp"
4444

4545
lighthouse_node:
46-
image: sigp/lighthouse:v4.5.0
46+
image: sigp/lighthouse:v5.1.2
4747
container_name: consensus
4848
restart: always
4949
command:

lib/ethereum/lib/assets/docker-compose/docker-compose-erigon-prysm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: "3"
33
services:
44
erigon_node:
5-
image: thorax/erigon:2.57.0-__IMAGE_ARCH__
5+
image: thorax/erigon:2.59.0-__IMAGE_ARCH__
66
container_name: execution
77
restart: always
88
command:
@@ -43,7 +43,7 @@ services:
4343
- "30303:30303/udp"
4444

4545
prysm_node:
46-
image: rocketpool/prysm:v4.2.0
46+
image: rocketpool/prysm:v5.0.1
4747
container_name: consensus
4848
restart: always
4949
command:

lib/ethereum/lib/assets/docker-compose/docker-compose-geth-lighthouse.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
version: "3"
33
services:
44
geth_node:
5-
image: ethereum/client-go:v1.13.10
5+
image: ethereum/client-go:v1.13.14
66
container_name: execution
77
restart: always
88
command:
@@ -38,7 +38,7 @@ services:
3838
- "30303:30303/udp"
3939

4040
lighthouse_node:
41-
image: sigp/lighthouse:v4.5.0
41+
image: sigp/lighthouse:v5.1.2
4242
container_name: consensus
4343
restart: always
4444
command:

lib/ethereum/lib/assets/docker-compose/docker-compose-nethermind-teku.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ services:
44
nethermind_node:
55
environment:
66
- "DOTNET_BUNDLE_EXTRACT_BASE_DIR=/var/lib/nethermind/data"
7-
image: nethermind/nethermind:1.25.2
7+
image: nethermind/nethermind:1.25.4
88
container_name: execution
99
restart: always
1010
command: [
1111
"--config",
1212
"mainnet",
1313
"--datadir",
1414
"/var/lib/nethermind/data",
15-
# "--Sync.FastSync", "true",
1615
"--Sync.SnapSync",
1716
"true",
1817
"--JsonRpc.JwtSecretFile",
@@ -54,7 +53,7 @@ services:
5453
environment:
5554
- "JAVA_OPTS=-Xmx4g"
5655
- "TEKU_OPTS=-XX:-HeapDumpOnOutOfMemoryError"
57-
image: consensys/teku:24.1.0-jdk17
56+
image: consensys/teku:24.3.0-jdk17
5857
container_name: consensus
5958
restart: always
6059
command:

lib/ethereum/lib/assets/node-cw-dashboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const SyncNodeCWDashboardJSON = {
1+
export const NodeCWDashboardJSON = {
22
"widgets": [
33
{
44
"height": 5,

lib/ethereum/lib/common-stack.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ export class EthCommonStack extends cdk.Stack {
7474
`arn:aws:s3:::amazonlinux-2-repos-${region}/*`,
7575
`arn:aws:s3:::${asset.s3BucketName}`,
7676
`arn:aws:s3:::${asset.s3BucketName}/*`,
77+
"arn:aws:s3:::cloudformation-examples",
78+
"arn:aws:s3:::cloudformation-examples/*",
79+
"arn:aws:s3:::amazoncloudwatch-agent",
80+
"arn:aws:s3:::amazoncloudwatch-agent/*"
7781
],
7882
actions: ["s3:ListBucket", "s3:*Object", "s3:GetBucket*"],
7983
})

lib/ethereum/lib/rpc-nodes-stack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export class EthRpcNodesStack extends cdk.Stack {
8787
machineImage: new ec2.AmazonLinuxImage({
8888
generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2,
8989
cpuType: instanceCpuType,
90+
kernel: ec2.AmazonLinuxKernel.KERNEL5_X,
9091
}),
9192
role: instanceRole,
9293
vpc,

lib/ethereum/lib/single-node-stack.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@ export class EthSingleNodeStack extends cdk.Stack {
6363
asset.bucket.grantRead(instanceRole);
6464

6565
// Setting up the node using generic Single Node constract
66-
const syncNode = new SingleNodeConstruct(this, "single-node", {
66+
const node = new SingleNodeConstruct(this, "single-node", {
6767
instanceName: STACK_NAME,
6868
instanceType,
6969
dataVolumes,
7070
machineImage: new ec2.AmazonLinuxImage({
7171
generation: ec2.AmazonLinuxGeneration.AMAZON_LINUX_2,
7272
cpuType: instanceCpuType,
73+
kernel: ec2.AmazonLinuxKernel.KERNEL5_X,
7374
}),
7475
vpc,
7576
availabilityZone: chosenAvailabilityZone,
@@ -92,28 +93,28 @@ export class EthSingleNodeStack extends cdk.Stack {
9293
_AUTOSTART_CONTAINER_: "true",
9394
_FORMAT_DISK_: "true",
9495
_NODE_ROLE_:nodeRole,
95-
_NODE_CF_LOGICAL_ID_: syncNode.nodeCFLogicalId,
96+
_NODE_CF_LOGICAL_ID_: node.nodeCFLogicalId,
9697
_LIFECYCLE_HOOK_NAME_: "",
9798
_AUTOSCALING_GROUP_NAME_: "",
9899
});
99100

100101
// Adding modified userdata script to the instance prepared fro us by Single Node constract
101-
syncNode.instance.addUserData(modifiedUserData);
102+
node.instance.addUserData(modifiedUserData);
102103

103104
// Adding CloudWatch dashboard to the node
104-
const dashboardString = cdk.Fn.sub(JSON.stringify(nodeCwDashboard.SyncNodeCWDashboardJSON), {
105-
INSTANCE_ID:syncNode.instanceId,
105+
const dashboardString = cdk.Fn.sub(JSON.stringify(nodeCwDashboard.NodeCWDashboardJSON), {
106+
INSTANCE_ID:node.instanceId,
106107
INSTANCE_NAME: STACK_NAME,
107108
REGION: REGION,
108109
})
109110

110111
new cw.CfnDashboard(this, 'single-cw-dashboard', {
111-
dashboardName: STACK_NAME,
112+
dashboardName: `${STACK_NAME}-${node.instanceId}`,
112113
dashboardBody: dashboardString,
113114
});
114115

115116
new cdk.CfnOutput(this, "single-instance-id", {
116-
value: syncNode.instanceId,
117+
value: node.instanceId,
117118
});
118119

119120
// Adding suppressions to the stack

0 commit comments

Comments
 (0)