Vigyata.AI
Is this your channel?

I Mined Ethereum for 24 Hours on Google Cloud Platform

30.2K views· 539 likes· 18:55· Jan 22, 2022

🛍️ Products Mentioned (9)

Google insisted I stop... 🧠 Need expert help fast? Book a 1:1 session and get unstuck today 👉 https://bit.ly/42I10y5 🎥 NEW: Unlock members-only videos and behind-the-scenes drops 👉 https://bit.ly/4iyBm4I 🛠️ The exact tools and gear I trust (and actually use) 👉 https://amzn.to/44fKDv4 📚 Step-by-step setup guides, templates, and insider resources 👉 https://bit.ly/4ivZDID 🛒 Grab custom gear and tools designed by me 👉 https://etsy.me/4isKwjb 📩 For sponsorships or business inquiries, reach out: macgyvertechnology@gmail.com This video will show you how to set up an ethereum 2.0 node on a Linux Machine on Google Cloud Platform using Geth. An ethereum node can be used to validate transactions and mine ethereum as well as create private blockchains to develop web3 applications. Mining is the process of creating a block of transactions to be added to the Ethereum blockchain. Ethereum, like Bitcoin, currently uses a proof-of-work (PoW) consensus mechanism. Mining is the lifeblood of proof-of-work. Ethereum miners - computers running software - using their time and computation power to process transactions and produce blocks. A blockchain is a public database that is updated and shared across many computers in a network. "Block" refers to data and state being stored in consecutive groups known as "blocks". If you send ETH to someone else, the transaction data needs to be added to a block to be successful. "Chain" refers to the fact that each block cryptographically references its parent. In other words, blocks get chained together. The data in a block cannot change without changing all subsequent blocks, which would require the consensus of the entire network. Every computer in the network must agree upon each new block and the chain as a whole. These computers are known as "nodes". Nodes ensure everyone interacting with the blockchain has the same data. To accomplish this distributed agreement, blockchains need a consensus mechanism. Linux Commands https://gist.github.com/aioverlords/fd95b15e5b30acd0b5f5cf9032ba9a5d Commands Elevate to Root sudo su - Update Packages apt-get update Install Geth https://geth.ethereum.org/downloads/ wget file tar -xvf package_name Sync Node via Geth geth --http --miner.etherbase 0xA92f293fF7f639f9d604662d12eac76a103942DD --datadir /ethereum-chain --ipcdisable --cache 3000 --maxpeers 50 Create Directory for Chain Data mkdir ethereum-chian Run Geth JavaScript Console geth attach http://127.0.0.1:8545 Check Syncing Statuc eth.syncing Etherscan.io https://etherscan.io/ Check Progress with Geth JS Console var lastPercentage = 0; var lastBlocksToGo = 0; var timeInterval = 10000; setInterval(function () { var percentage = eth.syncing.currentBlock / eth.syncing.highestBlock * 100; var percentagePerTime = percentage - lastPercentage; var blocksToGo = eth.syncing.highestBlock - eth.syncing.currentBlock; var bps = (lastBlocksToGo - blocksToGo) / (timeInterval / 1000); var etas = 100 / percentagePerTime * (timeInterval / 1000); var etaM = parseInt(etas / 60, 10); console.log(parseInt(percentage, 10) + '% ETA: ' + etaM + ' minutes @ ' + bps + 'bps'); lastPercentage = percentage; lastBlocksToGo = blocksToGo; console.log("Remaining Blocks: " + (eth.syncing.highestBlock - eth.syncing.currentBlock)); }, timeInterval); Show Chain Data cd /ethereum-data du -shc ./* Show System Utilization htop Show Disk Read/Write Activity apt-get install iotop iotop Run TMUX apt-get install tmux tmux Start Mining geth --http --miner.etherbase 0xA92f293fF7f639f9d604662d12eac76a103942DD --datadir /mount-eth2/blockchain --ipcdisable --cache 30048 --maxpeers 150 --mine --miner.threads=4 --metrics Outline Intro 0:00 - 0:55 Ethereum Nodes 0:55 - 1:30 Syncing Methods 1:30 - 2:05 SSD 2:05 - 2:28 Create Virtual Machine 2:28 - 3:50 SSH Into VM 3:50 - 4:18 Install Geth 4:18 - 5:37 Sync Blockchain 5:37 - 7:26 Geth JS Console 7:26 - 9:55 Monitor Chain Data 9:55 - 10:58 Review System Utilization 10:58 - 11:34 Show Disk Activity 11:34 - 12:25 Run tmux 12:25 - 16:40 Start Miner 16:40 - 17:40 Open All Ports on Router 17:40 - 18:13 Review Billing on GCP 18:13 - 18:54 #ethereum #crypto

🎬 More from Data Slayer