- Mensajes: 8
- Gracias recibidas: 0
Solucionado Running your own Ethereum Node
- CryptoPirate
- Autor del tema
- Fuera de línea
- Usuario
Menos
Más
4 meses 1 semana antes #4
por CryptoPirate
Running your own Ethereum Node Publicado por CryptoPirate
CRyPTOPIRATE said:The world of web3 makes it possible for anyone to interact in a different model from the old internet. It is the next evolution of the internet based around the principles of decentralization and anyone can participate. By running your own Ethereum node, you take ownership and help transform how we all interact on the internet.Here, we will show you the basics on how to run your own Ethereum node. We will start with three different options for setting up a node: third-party nodes, nodes on external servers, and full Ethereum nodes on your own hardware.What is an Ethereum node?Lets start with the Basics of Ethereum. Ethereum is a peer-to-peer network with thousands of nodes that must be able to communicate with one another using standardized protocols. The "networking layer" is the stack of protocols that allow those nodes to find each other and exchange information. This includes "gossiping" information (one-to-many communication) over the network as well as swapping requests and responses between specific nodes (one-to-one communication). Each node must adhere to specific networking rules to ensure they are sending and receiving the correct information.There are two parts to the client software (execution clients and consensus clients), each with its own distinct networking stack. As well as communicating with other Ethereum nodes, the execution and consensus clients have to communicate with each other. This page gives an introductory explanation of the protocols that enable this communication.Execution clients gossip transactions over the execution-layer peer-to-peer network. This requires encrypted communication between authenticated peers. When a validator is selected to propose a block, transactions from the node's local transaction pool will be passed to consensus clients via a local RPC connection, which will be packaged into Beacon blocks.Consensus clients will then gossip Beacon blocks across their p2p network. This requires two separate p2p networks: one connecting execution clients for transaction gossip and one connecting consensus clients for block gossip.Why run an Ethereum node?Running your own node gives you many benefits - even if you don’t stake ETH for the rewards. These include privacy, security, reduced reliance on others and of course censorship resistance. Overall, you contribute to the decentralization and resilience of the ethereum network.
Most importantly: Don’t trust. Verify (with your own node)!Third-Party Nodes
The easiest way to set up an Ethereum node is to use a third-party service. There are a number of companies that offer this service, such as Infura and Alchemy. These services provide a simple way to connect to the Ethereum network without having to worry about setting up and maintaining your own node.Example:
www.staderlabs.com/eth/node-operators/ What do I need to run my own node?A full node is one that runs both an Execution Client and a Consensus Client.Here is a simple breakdown of what is required to run a full Ethereum node:
Performance: Running an execution and consensus node on a Raspberry Pi is possible. Specifically, Nimbus which was designed to run on devices like a Raspberry Pi. Being able to run Ethereum nodes on low-powered hardware is great for decentralization and an honorable goal. However, running a validator is different. I maintain that the Pi’s lack of processing power and memory is a risk in some situations such as a period with no finalization. The reward of saving a few hundred dollars vs more powerful hardware does not even come close to outweighing the risk of extended downtime due to a lack of processing power or memory.
Power Usage: Approximately 8 watts.Intel NUCPrice: Medium price.
Power usage: 20-25ish watts.
NUCs are super cute, and their small form factor gives them a very high significant-other approval factor. Unfortunately that does come with a bit of a price premium and slightly less performance than the larger desktop option. However, these are minor drawbacks. This is probably the best option for most people.DAppNodePrice: Medium price
Performance: The DAppNodeXtreme is a good option if you are looking for a custom built OS with an easy UX. A DAppNode box is just a NUC pre-configured with their software. If you are confident enough to install an OS by yourself, you can save a bit of money by purchasing a normal NUC and installing DAppNode yourself. You can also install the DAppNode OS on any computer. If you don’t want to mess around with installing operating systems and want an easy UX, buying a DAppNode box is a convenient and simple way to get started.
Power Usage: 20-25ish watts.Virtual Private ServerPrice: Anywhere from $20 - $50 per month.
Performance: You can buy as much as you can afford.ConclusionIf you live somewhere that is prone to natural disaster or has an unstable power grid or internet connection but still want to solo stake, this is a good option. If you do have stable power and internet, running your own hardware will be a cheaper/more profitable solution long term. You need to evaluate the pros/cons of this for your own situation. Remember that if one of the VPS providers goes down, it will mean all of the people using that VPS service to host will also go down, and the inactivity penalties will be much larger than if you have uncorrelated downtime yourself.
It is our goal to enable everyone to build their own nodes- not only on Ethereum but any blockchain that they want to participate in. In the next days we will come up with an example introduction to run your own ethereum node on an Raspberry Pi or Intel NUC.If you have any questions, please feel free to leave a comment below or join one of our in-person meetups.
Most importantly: Don’t trust. Verify (with your own node)!Third-Party Nodes
The easiest way to set up an Ethereum node is to use a third-party service. There are a number of companies that offer this service, such as Infura and Alchemy. These services provide a simple way to connect to the Ethereum network without having to worry about setting up and maintaining your own node.Example:
www.staderlabs.com/eth/node-operators/ What do I need to run my own node?A full node is one that runs both an Execution Client and a Consensus Client.Here is a simple breakdown of what is required to run a full Ethereum node:
- A stable Internet connection. The longer you stay online, the better your rewards. A spotty Internet connection will hurt your returns.
- At least 10Mbps of bandwidth both up and down. A full node usually takes around 8Mbps to 10Mbps up & down of network traffic, depending on your configuration.
- No data cap is imposed by your ISP. Running a full node will take a lot of data - as much as over 2 TB per month of on-chain data alone. This can be mitigated somewhat with a few settings tweaks to the ETH clients, but as a rule of thumb, don't run a full node if your Internet plan comes with a monthly data cap.
- Stable electricity. For the same reason as needing a stable Internet connection, you also want to have reliable power. This can be mitigated with a large UPS (backup battery) to deal with short blackouts.
- A computer with sufficient specs. This is pretty flexible because it really depends on what Execution and Consensus client you use, and what settings you configure them with. The computer can be a local machine, or it can be a Virtual Private Server (VPS) hosted in the cloud. Read below for some more information on those two options, and how to decide which is best for you.
- Linux or macOS Operating System
- Quad-core CPU (or dual-core hyperthreaded); both x64 and arm64 are supported
- 16 GB of RAM (preferably DDR4)
- 2 TB of free SSD Disk Space: a spinning platter hard drive is not fast enough to handle the constant random reads and writes that blockchain activity requires. You MUST use a solid-state drive.
- Make sure you have a reliable internet connection. Synchronizing the blockchain can take a long time, so you need to have a good internet connection to avoid any delays.
- Choose a secure location for your node. If you are setting up a full Ethereum node on your own hardware, you need to choose a secure location for your computer. You should also consider using a firewall to protect your node from unauthorized access.
- Keep your node up to date. The Ethereum network is constantly evolving, so it is important to keep your node up to date with the latest software. This will ensure that you are able to connect to the network and participate in transactions.
Performance: Running an execution and consensus node on a Raspberry Pi is possible. Specifically, Nimbus which was designed to run on devices like a Raspberry Pi. Being able to run Ethereum nodes on low-powered hardware is great for decentralization and an honorable goal. However, running a validator is different. I maintain that the Pi’s lack of processing power and memory is a risk in some situations such as a period with no finalization. The reward of saving a few hundred dollars vs more powerful hardware does not even come close to outweighing the risk of extended downtime due to a lack of processing power or memory.
Power Usage: Approximately 8 watts.Intel NUCPrice: Medium price.
Power usage: 20-25ish watts.
NUCs are super cute, and their small form factor gives them a very high significant-other approval factor. Unfortunately that does come with a bit of a price premium and slightly less performance than the larger desktop option. However, these are minor drawbacks. This is probably the best option for most people.DAppNodePrice: Medium price
Performance: The DAppNodeXtreme is a good option if you are looking for a custom built OS with an easy UX. A DAppNode box is just a NUC pre-configured with their software. If you are confident enough to install an OS by yourself, you can save a bit of money by purchasing a normal NUC and installing DAppNode yourself. You can also install the DAppNode OS on any computer. If you don’t want to mess around with installing operating systems and want an easy UX, buying a DAppNode box is a convenient and simple way to get started.
Power Usage: 20-25ish watts.Virtual Private ServerPrice: Anywhere from $20 - $50 per month.
Performance: You can buy as much as you can afford.ConclusionIf you live somewhere that is prone to natural disaster or has an unstable power grid or internet connection but still want to solo stake, this is a good option. If you do have stable power and internet, running your own hardware will be a cheaper/more profitable solution long term. You need to evaluate the pros/cons of this for your own situation. Remember that if one of the VPS providers goes down, it will mean all of the people using that VPS service to host will also go down, and the inactivity penalties will be much larger than if you have uncorrelated downtime yourself.
It is our goal to enable everyone to build their own nodes- not only on Ethereum but any blockchain that they want to participate in. In the next days we will come up with an example introduction to run your own ethereum node on an Raspberry Pi or Intel NUC.If you have any questions, please feel free to leave a comment below or join one of our in-person meetups.
Por favor, Conectar o Crear cuenta para unirse a la conversación.