Skip to content

Commit 7c62ebc

Browse files
author
Simon Goldberg
committed
fix pre-commmit and add placeholder account ID
1 parent ca6e5c1 commit 7c62ebc

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

lib/bitcoin-core/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Before proceeding, ensure you have the AWS CLI installed and configured.
6464

6565
### Configuration
6666

67-
1. Make sure you are in the root directory of the cloned repository.
67+
1. Make sure you are in the root directory of the cloned repository.
6868

6969
2. If you have deleted or don't have the default VPC, create default VPC
7070

@@ -80,7 +80,7 @@ cd lib/bitcoin
8080
cp ./sample-configs/.env-sample-bitcoin-mainnet .env
8181
vim .env
8282
```
83-
83+
8484
4. Deploy common components such as IAM role:
8585

8686
```bash
@@ -121,15 +121,15 @@ npx cdk deploy HABitcoinCoreNodeStack --outputs-file ha-nodes-outputs.json
121121
- A **Bitcoin node** deployed in a **public subnet** continuously synchronizes with the Bitcoin network.
122122
- Outbound peer-to-peer (P2P) communication flows through an **Internet Gateway (IGW)**.
123123
- The node's security group permits incoming P2P connections on port 8333.
124-
- The node's RPC methods can be accessed from within the VPC.
125-
- The Solana node sends various monitoring metrics for both EC2 and Solana nodes to Amazon CloudWatch.
124+
- The node's RPC methods can be accessed from within the VPC.
125+
- The Solana node sends various monitoring metrics for both EC2 and Solana nodes to Amazon CloudWatch.
126126

127127
#### High Availability (HA) Setup
128128
![HA Node Deployment](./doc/assets/Bitcoin-HA-Nodes-Arch.png)
129129

130130
- Deploying **multiple Bitcoin nodes** in an **Auto Scaling Group** enhances fault tolerance and availability.
131131
- The nodes' RPC endpoints are exposed through an **Application Load Balancer (ALB)**. The ALB implements session persistence using a "stickiness cookie". This ensures that subsequent requests from the same client are consistently routed to the same node, maintaining session continuity. The stickiness duration is set to 90 minutes but can be configured for up to 7 days. Note: The Bitcoin Core nodes in the HA setup do not share state (e.g., wallet, mempool)
132-
- HA nodes do not expose the RPC endpoint to the public internet. This endpoint can be accessed from within the VPC.
132+
- HA nodes do not expose the RPC endpoint to the public internet. This endpoint can be accessed from within the VPC.
133133

134134
---
135135

@@ -206,7 +206,7 @@ Use the following command to retrieve your load balancer's DNS name:
206206
export LOAD_BALANCER_DNS=$(jq -r '.HABitcoinCoreNodeStack.LoadBalancerDNS' ha-nodes-outputs.json)
207207
echo LOAD_BALANCER_DNS=$LOAD_BALANCER_DNS
208208
```
209-
Copy output from the last `echo` command with `RPC_ABL_URL=<internal_IP>` and open [CloudShell tab with VPC environment](https://docs.aws.amazon.com/cloudshell/latest/userguide/creating-vpc-environment.html) to access internal IP address space. Paste `RPC_ABL_URL=<internal_IP>` into the new CloudShell tab.
209+
Copy output from the last `echo` command with `RPC_ABL_URL=<internal_IP>` and open [CloudShell tab with VPC environment](https://docs.aws.amazon.com/cloudshell/latest/userguide/creating-vpc-environment.html) to access internal IP address space. Paste `RPC_ABL_URL=<internal_IP>` into the new CloudShell tab.
210210

211211
Execute the following command to make an RPC request to your HA node setup:
212212

lib/bitcoin-core/lib/ha-node-stack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class HABitcoinCoreNodeStack extends cdk.Stack {
104104

105105

106106

107-
// Configure block devices
107+
// Configure block devices
108108
const blockDevices = [{
109109
deviceName: '/dev/xvda',
110110
volume: ec2.BlockDeviceVolume.ebs(

lib/bitcoin-core/sample-configs/.env-sample-bitcoin-mainnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ ASG_DESIRED_CAPACITY=2
1717

1818
# The following configuration has been tested and proven effective for a Bitcoin Core node to achieve full synchronization without incurring additional costs:
1919
GP3_IOPS=3000
20-
CPU_ARCHITECTURE=X86_64 # Options: X86_64 or ARM64
20+
CPU_ARCHITECTURE=X86_64 # Options: X86_64 or ARM64

0 commit comments

Comments
 (0)