Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
06dc0ea
update start script to right syntax (#439)
liam-lai Feb 20, 2024
f11bf73
fix panic caused by skipKeyFile (#440)
gzliudan Feb 23, 2024
8563ee3
Merge pull request #441 from gzliudan/fix-issue-440
gzliudan Feb 26, 2024
4731eb2
params: lint ChainConfig
gzliudan Feb 29, 2024
ac7a58c
Merge pull request #455 from gzliudan/lint-ChainConfig
gzliudan Mar 1, 2024
192edc0
core/vm: use uint256 in EVM implementation (#20787)
chfast Jun 8, 2020
06d5da0
core/vm: use pointers to operations vs. copy by value (#21336)
karalabe Jul 16, 2020
446b9e8
core/vm, params: make 2200 in line with spec (#21605)
holiman Sep 28, 2020
6077ecb
core/vm: replace repeated string with variable in tests (#22774)
aaronbuchwald Apr 30, 2021
9c8d228
core/vm: clean up contract creation error handling (#22766)
chfast May 1, 2021
7c6908b
core/vm: fix interpreter comments (#22797)
aaronbuchwald May 3, 2021
21bbe5f
core/vm: avoid duplicate log in json logger (#22825)
JekaMas May 6, 2021
7a55b9f
core/state: remove unused methods ReturnGas (#23092)
gzliudan Feb 22, 2024
f05fa00
core/vm: fix typo in comment (#23450)
gballet Aug 24, 2021
dc8cdf3
core/vm: rework jumpdest analysis benchmarks (#23499)
chfast Aug 30, 2021
f9e14af
core/vm: don't use iota for opcode definitions (#23928)
holiman Nov 18, 2021
3d3cc6c
core/vm: use proper JumpTable type (#23967)
chfast Nov 24, 2021
f7c6b1a
core/vm, core/state/snapshot: remove unused code (#23956)
holiman Nov 25, 2021
6415934
core/vm: simplify op lookup in contract (#23974)
gumb0 Nov 25, 2021
823ec33
core/vm: simplify error handling in interpreter loop (#23952)
chfast Nov 29, 2021
c097e56
core/vm: rename SHA3 instruction to KECCAK256 (#23976)
axic Nov 30, 2021
002be52
core/vm: don't copy JumpTable when no EIP mods are needed (#23977)
gumb0 Nov 30, 2021
bfbb678
core/vm: move interpreter.ReadOnly check into the opcode implementati…
axic Dec 1, 2021
b1c0386
core/vm: rename opSuicide to opSelfdestruct (#24022)
axic Dec 1, 2021
ae267d3
core/vm: remove stack.pushN (#24040)
axic Dec 3, 2021
7d3c783
core/vm: fill gaps in jump table with opUndefined (#24031)
chfast Dec 3, 2021
4c27910
core/vm: move interpreter interruption check to jump instructions (#2…
gumb0 Dec 3, 2021
fbc1cc1
core/vm: remove no-recursion option from config (24066)
holiman Dec 6, 2021
2ce3001
core/vm: remove unused code (IsStaticJump) (#24085)
axic Dec 9, 2021
6e92486
core/vm: reverse bit order in bytes of code bitmap (#24120)
chfast Dec 17, 2021
b022ba2
core/vm: make INVALID a defined opcode (#24017)
gumb0 Dec 17, 2021
ac35f0e
core/vm: clean up some dead functions (#24851)
s7v7nislands May 11, 2022
62b62da
core/vm: separate opcode group for 0x20 range (#24850)
s7v7nislands May 11, 2022
032b98e
core/vm: optimize Memory.Set32 (#24847)
qianbin May 11, 2022
8b6db6d
core/vm: better handle error on eip activation check (#25131)
qinglin89 Sep 26, 2022
b36678f
core/vm: performance tweak of `OpCode.String()` (#28453)
lmittmann Nov 2, 2023
df2384e
Merge pull request #452 from gzliudan/new-vm
gzliudan Mar 1, 2024
928a069
implement EIP-3198
gzliudan Feb 29, 2024
3e74a2f
Merge pull request #458 from gzliudan/eip3198
gzliudan Mar 2, 2024
cf22195
Use github action (#460)
liam-lai Mar 3, 2024
317dc4c
remove all CI warning by upgrade to nodejs 20 image (#461)
liam-lai Mar 3, 2024
e324d7d
fix: race condition of x.signer in v1 consensus (#445)
wjrjerome Mar 3, 2024
a314895
implement EIP-4399, PREVRANDAO opcode.
wgr523 Mar 2, 2024
72e5ee0
lint for `params/config.go`
wgr523 Mar 3, 2024
b86c7f6
Try remove privacy pkg (#466)
wanwiset25 Mar 4, 2024
46ef5e1
add testnet and mainnet node for latest code testing (#467)
liam-lai Mar 4, 2024
38a192e
Merge pull request #459 from XinFinOrg/eip4399
liam-lai Mar 4, 2024
7bd39e6
rpc: add http.TimeoutHandler for http server
gzliudan Mar 3, 2024
07d40a0
fix: add lock for haserror variable in timeout.go (#443)
wjrjerome Mar 4, 2024
753729c
Disable xdcx related tx creation (#430)
liam-lai Mar 4, 2024
5223454
Merge pull request #469 from gzliudan/http-server-timeout
gzliudan Mar 4, 2024
bbe08ac
core/state: add function GetStorageRoot
gzliudan Mar 6, 2024
ece58f0
ethapi: add method eth_getAccountInfo
gzliudan Mar 6, 2024
476bda6
Merge pull request #479 from gzliudan/get-account-info
gzliudan Mar 6, 2024
ae10d70
Rollback privacy (#477)
wanwiset25 Mar 7, 2024
6ba7c26
common/lru: add generic LRU implementation (#26162)
gzliudan Mar 7, 2024
0e36b5b
fix typo in EIPs
wgr523 Mar 4, 2024
968440c
core/vm: implement EIP-3855: PUSH0 instruction.
wang-gerui Mar 7, 2024
863d4f1
eth/tracers/js: fix isPush for push0 (#28520)
wang-gerui Mar 7, 2024
6a2f753
Merge pull request #472 from XinFinOrg/eip3855
gzliudan Mar 7, 2024
6c80c09
Merge pull request #480 from gzliudan/lru
gzliudan Mar 7, 2024
771c2f3
enable 0x prefix for devnet code rpcs
Mar 8, 2024
f5e09b3
Merge pull request #481 from XinFinOrg/enable-0x-prefix
gzliudan Mar 8, 2024
66e3eba
enable shanghai for devnet on block 16832700
gzliudan Mar 8, 2024
b51f696
Merge pull request #482 from gzliudan/devnet-shanghai
liam-lai Mar 8, 2024
75c8d40
Ensure DB is close before client exit (#478)
wanwiset25 Mar 8, 2024
910d415
Missing `json` Field Tags in Marshalled Struct (#475)
wanwiset25 Mar 8, 2024
c7cb63d
fix: error handling on x.getEpochSwitchInfo in sendTimeout should ret…
wjrjerome Mar 9, 2024
3051b2d
use rlock instead of lock in v1 consensus engine (#483)
wjrjerome Mar 9, 2024
45ccc37
bump version to 2.1.0 (#485)
liam-lai Mar 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 176 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
name: CI

on:
push:
branches:
- '*'
tags:
- '*'

env:
GOPROXY: https://proxy.golang.org
GO111MODULE: on
tf_version: "1.3.0"
tf_init_cli_options: "-input=false"
tf_validation_cli_options: ""
tf_plan_cli_options: "-lock=false -input=false"
tf_apply_cli_options: "-auto-approve -input=false"

jobs:
tests:
env:
GOPATH: ${{ github.workspace }}
GOBIN: ${{ github.workspace }}/bin
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/XDPoSChain
strategy:
matrix:
include:
- name: A-B tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/[a-b].*")
- name: C-[a-m] tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/c[a-m].*")
- name: C-[n-o] tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/c[n-o].*")
- name: C-[p-z] tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/c[p-z].*")
- name: D-I tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/[d-i].*")
- name: J-N tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/[j-n].*")
- name: O-R tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/[o-r].*")
- name: S tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/s.*")
- name: T-Z tests
script: go run build/ci.go test -coverage $(go list ./... | grep "github.com/XinFinOrg/XDPoSChain/[t-z].*")
steps:
- name: Check out code
uses: actions/checkout@v4
with:
path: ${{ env.GOPATH }}/src/XDPoSChain
- name: Set up Go
uses: actions/setup-go@v5
with:
cache: false
go-version: '1.21.x'
- name: Run tests
run: ${{ matrix.script }}
env:
GO111MODULE: auto

tag_build:
runs-on: ubuntu-latest
needs: tests
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Build Docker image
run: docker build -t xinfinorg/xdposchain:${GITHUB_REF#refs/tags/} -f cicd/Dockerfile .
- name: Push Docker image
run: docker push xinfinorg/xdposchain:${GITHUB_REF#refs/tags/}

devnet_build_push:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
needs: tests
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Build and Push Docker images
run: |
docker pull xinfinorg/devnet:latest
docker tag xinfinorg/devnet:latest xinfinorg/devnet:previous
docker rmi xinfinorg/devnet:latest
docker build -t xinfinorg/devnet:latest -f cicd/Dockerfile .
docker push xinfinorg/devnet:latest
docker push xinfinorg/devnet:previous

devnet_terraform_apply:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
needs: devnet_build_push
environment: devnet
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- name: Terraform Apply
run: |
cd cicd/devnet/terraform
terraform init ${{ env.tf_init_cli_options }}
terraform apply ${{ env.tf_apply_cli_options }}
sleep 5
source .env
for ((i=$us_east_2_start;i<$us_east_2_end;i++)); do
echo "Force deploy xdc-$i"
aws ecs update-service --region us-east-2 --cluster devnet-xdcnode-cluster --service ecs-service-xdc$i --force-new-deployment --no-cli-pager | head -n 10;
done
for ((i=$eu_west_1_start;i<$eu_west_1_end;i++)); do
echo "Force deploy xdc-$i"
aws ecs update-service --region eu-west-1 --cluster devnet-xdcnode-cluster --service ecs-service-xdc$i --force-new-deployment --no-cli-pager | head -n 10;
done
for ((i=$ap_southeast_2_start;i<$ap_southeast_2_end;i++)); do
echo "Force deploy xdc-$i"
aws ecs update-service --region ap-southeast-2 --cluster devnet-xdcnode-cluster --service ecs-service-xdc$i --force-new-deployment --no-cli-pager | head -n 10;
done
aws ecs update-service --region ap-southeast-1 --cluster devnet-xdcnode-cluster --service ecs-service-rpc1 --force-new-deployment --no-cli-pager | head -n 10;

rpcnode_terraform_apply:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
needs: devnet_build_push
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- name: Terraform Apply
run: |
cd cicd/terraform
terraform init ${{ env.tf_init_cli_options }}
terraform apply ${{ env.tf_apply_cli_options }}

testnet_dev-upgrade_node:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
needs: rpcnode_terraform_apply
environment: testnet
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- name: ECS Update
run: |
aws ecs update-service --region ap-southeast-1 --cluster testnet-xdcnode-cluster --service ecs-service-testnet-rpc1 --force-new-deployment --no-cli-pager | head -n 10;

mainnet_dev-upgrade_node:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
needs: rpcnode_terraform_apply
environment: mainnet
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v4
- name: ECS Update
run: |
aws ecs update-service --region ap-southeast-1 --cluster mainnet-xdcnode-cluster --service ecs-service-mainnet-rpc1 --force-new-deployment --no-cli-pager | head -n 10;

devnet_send_notification:
runs-on: ubuntu-latest
needs: devnet_terraform_apply
if: github.ref == 'refs/heads/dev-upgrade' && !startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Send deployment notification
run: |
curl --location --request POST "66.94.98.186:8080/deploy?environment=devnet&service=xdc&version=${GITHUB_SHA}"
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ profile.cov
**/yarn-error.log
coverage.txt
go.sum
cicd/devnet/terraform/.terraform*
**/.terraform*
cicd/devnet/tmp
.env
cicd/devnet/terraform/node-config.json
File renamed without changes.
5 changes: 3 additions & 2 deletions accounts/keystore/file_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (fc *fileCache) scan(keyDir string) (mapset.Set, mapset.Set, mapset.Set, er
if err != nil {
log.Warn("scan get FileInfo", "err", err, "path", path)
}
if skipKeyFile(fiInfo) {
if fiInfo == nil || skipKeyFile(fiInfo) {
log.Trace("Ignoring file on account scan", "path", path)
continue
}
Expand Down Expand Up @@ -94,7 +94,8 @@ func (fc *fileCache) scan(keyDir string) (mapset.Set, mapset.Set, mapset.Set, er
// skipKeyFile ignores editor backups, hidden files and folders/symlinks.
func skipKeyFile(fi os.FileInfo) bool {
// Skip editor backups and UNIX-style hidden files.
if strings.HasSuffix(fi.Name(), "~") || strings.HasPrefix(fi.Name(), ".") {
name := fi.Name()
if strings.HasSuffix(name, "~") || strings.HasPrefix(name, ".") {
return true
}
// Skip misc special files, directories (yes, symlinks too).
Expand Down
2 changes: 1 addition & 1 deletion cicd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ docker build -f cicd/Dockerfile .
```
## Docker Run
```
docker run -it -e NETWORK=devnet -e PRIVATE_KEYS=$KEY $IMAGE
docker run -it -e NETWORK=devnet -e PRIVATE_KEY=$KEY $IMAGE
``
8 changes: 4 additions & 4 deletions cicd/devnet/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ then
exit 1
fi
echo $PRIVATE_KEY >> /tmp/key
wallet=$(XDC account import --password .pwd --datadir /work/xdcchain /tmp/key | awk -v FS="({|})" '{print $2}')
wallet=$(XDC account import --password .pwd --datadir /work/xdcchain /tmp/key | awk -F '[{}]' '{print $2}')
XDC --datadir /work/xdcchain init /work/genesis.json
else
wallet=$(XDC account list --datadir /work/xdcchain | head -n 1 | awk -v FS="({|})" '{print $2}')
wallet=$(XDC account list --datadir /work/xdcchain | head -n 1 | awk -F '[{}]' '{print $2}')
fi

input="/work/bootnodes.list"
Expand Down Expand Up @@ -80,6 +80,6 @@ XDC --ethstats ${netstats} --gcmode archive \
--rpcapi admin,db,eth,debug,net,shh,txpool,personal,web3,XDPoS \
--rpcvhosts "*" --unlock "${wallet}" --password /work/.pwd --mine \
--gasprice "1" --targetgaslimit "420000000" --verbosity ${log_level} \
--periodicprofile --debugdatadir /work/xdcchain \
--ws --wsaddr=0.0.0.0 --wsport $ws_port \
--debugdatadir /work/xdcchain \
--enable-0x-prefix --ws --wsaddr=0.0.0.0 --wsport $ws_port \
--wsorigins "*" 2>&1 >>/work/xdcchain/xdc.log | tee -a /work/xdcchain/xdc.log
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "tfXdcNode",
"image": "xinfinorg/${image_environment}:${image_tag}",
"environment": [
{"name": "PRIVATE_KEYS", "value": "${private_keys}"},
{"name": "PRIVATE_KEY", "value": "${private_key}"},
{"name": "LOG_LEVEL", "value": "${log_level}"},
{"name": "NODE_NAME", "value": "${node_name}"},
{"name": "NETWORK", "value": "${chain_network}"}
Expand Down
2 changes: 1 addition & 1 deletion cicd/devnet/terraform/module/region/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ data template_file devnet_container_definition {
image_environment = "${lookup(each.value, "imageEnvironment", "devnet")}"
image_tag = "${lookup(each.value, "imageTag", "latest")}"
node_name = "${each.key}"
private_keys = "${each.value.pk}"
private_key = "${each.value.pk}"
cloudwatch_group = "tf-${each.key}"
cloudwatch_region = "${var.region}"
log_level = "${lookup(each.value, "logLevel", "${var.logLevel}")}"
Expand Down
10 changes: 5 additions & 5 deletions cicd/mainnet/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ then
exit 1
fi
echo $PRIVATE_KEY >> /tmp/key
wallet=$(XDC account import --password .pwd --datadir /work/xdcchain /tmp/key | awk -v FS="({|})" '{print $2}')
wallet=$(XDC account import --password .pwd --datadir /work/xdcchain /tmp/key | awk -F '[{}]' '{print $2}')
XDC --datadir /work/xdcchain init /work/genesis.json
else
wallet=$(XDC account list --datadir /work/xdcchain | head -n 1 | awk -v FS="({|})" '{print $2}')
wallet=$(XDC account list --datadir /work/xdcchain | head -n 1 | awk -F '[{}]' '{print $2}')
fi

input="/work/bootnodes.list"
Expand Down Expand Up @@ -76,9 +76,9 @@ XDC --ethstats ${netstats} --gcmode archive \
--datadir /work/xdcchain --networkid 50 \
-port $port --rpc --rpccorsdomain "*" --rpcaddr 0.0.0.0 \
--rpcport $rpc_port \
--rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,XDPoS \
--rpcapi admin,db,eth,debug,net,shh,txpool,personal,web3,XDPoS \
--rpcvhosts "*" --unlock "${wallet}" --password /work/.pwd --mine \
--gasprice "1" --targetgaslimit "420000000" --verbosity ${log_level} \
--periodicprofile --debugdatadir /work/xdcchain \
--ws --wsaddr=0.0.0.0 --wsport $ws_port \
--debugdatadir /work/xdcchain \
--enable-0x-prefix --ws --wsaddr=0.0.0.0 --wsport $ws_port \
--wsorigins "*" 2>&1 >>/work/xdcchain/xdc.log | tee -a /work/xdcchain/xdc.log
13 changes: 13 additions & 0 deletions cicd/terraform/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
log_level=3

# Ohio
us_east_2_start=0
us_east_2_end=36

# Ireland
eu_west_1_start=37
eu_west_1_end=72

# Sydney
ap_southeast_2_start=73
ap_southeast_2_end=108
28 changes: 28 additions & 0 deletions cicd/terraform/iam.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# IAM policies
data "aws_iam_policy_document" "xdc_ecs_tasks_execution_role" {
statement {
actions = ["sts:AssumeRole"]

principals {
type = "Service"
identifiers = ["ecs-tasks.amazonaws.com"]
}
}
}

# Create the role
resource "aws_iam_role" "xdc_ecs_tasks_execution_role" {
name = "xdc-ecs-task-execution-role"
assume_role_policy = "${data.aws_iam_policy_document.xdc_ecs_tasks_execution_role.json}"
}

# Attached the AWS managed policies to the new role
resource "aws_iam_role_policy_attachment" "xdc_ecs_tasks_execution_role" {
for_each = toset([
"arn:aws:iam::aws:policy/AmazonElasticFileSystemClientFullAccess",
"arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy",
"arn:aws:iam::aws:policy/AmazonElasticFileSystemsUtils"
])
role = aws_iam_role.xdc_ecs_tasks_execution_role.name
policy_arn = each.value
}
59 changes: 59 additions & 0 deletions cicd/terraform/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.13.1"
}
}
}

# Default
provider "aws" {
region = "us-east-1"
}

# WARNING: APSE-1 will only be used to host rpc node
# Workaround to avoid conflicts with existing ecs cluster in existing regions
provider "aws" {
alias = "ap-southeast-1"
region = "ap-southeast-1"
}

module "testnet-rpc" {
source = "./module/region"
region = "ap-southeast-1"
nodeKeys = local.rpcTestnetNodeKeys
enableFixedIp = true
logLevel = local.logLevel
xdc_ecs_tasks_execution_role_arn = aws_iam_role.xdc_ecs_tasks_execution_role.arn

cpu = 1024
memory = 4096

network = "testnet"
vpc_cidr = "10.1.0.0/16"
subnet_cidr = "10.1.0.0/20"
providers = {
aws = aws.ap-southeast-1
}
}

module "mainnet-rpc" {
source = "./module/region"
region = "ap-southeast-1"
nodeKeys = local.rpcMainnetNodeKeys
enableFixedIp = true
logLevel = local.logLevel
xdc_ecs_tasks_execution_role_arn = aws_iam_role.xdc_ecs_tasks_execution_role.arn

cpu = 1024
memory = 4096

network = "mainnet"
vpc_cidr = "10.2.0.0/16"
subnet_cidr = "10.2.0.0/20"
providers = {
aws = aws.ap-southeast-1
}
}

Loading