CryptoCoinsInfoClub.com

Geth Set Blockchain Folder

Ethereum Datadir - Crypto Mining Blog

Ethereum Datadir - Crypto Mining Blog

All About BTC, LTC, ETH mining as well as other alternative crypto currencies How to Backup Your Ethereum Wallet and the Blockchain Just like with Bitcoins wallet.dat file that contains your wallet address and keys and that you need to backup for safety reasons, Ethereum also has a similar wallet file that you should have a spare copy of. With Ethereum the wallet file has a bit weird name and is not just called wallet.dat, but it has essentially the same purpose and the file works essentially the same way as the wallet.dat with Bitcoin and many other alternative crypto coins. Ethereums wallet file is stored in the data directory used by the client to store the blockchain and other files, the default locations for the datadir on different operating systems are listed below. Windows: %USERPROFILE%\AppData\Roaming\Ethereum To get the full path of the data directory on your specific system you can run the geth console and type admin.datadir and you will see a result like on the screenshot above with the full path. Note that the wallet file is not stored in the main datadir folder, but is instead placed in a separate folder under it called keystore. Inside that folder you should see a file with a long name starting with UTC--2015..., this is the wallet file you need to backup. Do note that aside from the wallet file itself you will also need to remember the password (or also back it up along the wallet) that you set when creating your account, without the password needed to unlock it the wallet file wont be of much use. If you are moving your Ethereum installation over to a different computer or want to have a copy on another system for solo mining for example, aside from a copy of the wallet file you may also want to make a copy of the blockchain, so that the geth client w Continue reading >>

How To Delete Geth Chaindata & Resync

How To Delete Geth Chaindata & Resync

Home Guides Clients How To Delete Geth Chaindata & Resync Go-Ethereum (Geth)is one of the many Ethereum clients . It is developed by developers from the Ethereum Foundation . The core features of Ethereum web 3.0 stack are expected to arrive at Geth first. In this guide, the procedure for re-syncing Gethon Windows will be shown. I am usingGeth 1.5.4 (latest stable version as of 30 Nov) on my Windows 10 machine. Note: If you have not installed Geth, please install Geth using the instructions here: How To Install Geth In Windows . Resync of the blockchain has the benefit of reducing the amount of disk space used by Geth. The deletion of chaindata folder and resyncing of the blockchain will not be needed once Geth has employed state-tree pruning which will automatically archive old blocks to reduce disk usage. Until Geth has included this functionality, the regular deletion of chaindata folder and resyncing of blockchain is recommended to keep the disk usage at minimum. The chaindata folder is located atC:\Users\\AppData\Roaming\Ethereum\geth\. Yes, delete the whole folder. Do not worry. Your Ethereum account will NOT be deleted (they are stored in another location). Step 3: Run Geth with the -fast -cache=1024 flags If you do not know how to set the flags, please usethe instructions here (Under Step 4): How To Install Geth In Windows . Step 4: Wait for Geth to complete the fast sync Fast sync is completed when Geth starts to import 1 block at a time. Continue reading >>

Ethereum Data Directory Path Hardwired To C:\users\user\appdata\roaming\ethereum #2828

Ethereum Data Directory Path Hardwired To C:\users\user\appdata\roaming\ethereum #2828

Geth should respect the correct OS roaming path and not default to the C: drive. Ethereum blockchain data is being written to C:\Users\user\AppData\Roaming\Ethereum even when the OS location had moved. The blockchain data was taking a lot of room on my C: drive so I changed the location of the path C:\Users\user\AppData\Roaming (which contains the Ethereum data folder for the blockchain data) to D:\Roaming. When I start the wallet there is a error message that it cannot find the node and so it begins to download the whole blockchain again to the path C:\Users\user\AppData\Roaming\Ethereum As the blockchain will get bigger and bigger a lot of people will want to move the data folder to a bigger drive as the C drive is to small and has all the OS programs and data. Continue reading >>

Change Path For Ethereum Wallet Folder

Change Path For Ethereum Wallet Folder "chaindata"

Hello, I just started out with Ethereum by downloading/installing the Ethereum Wallet from the Website. (Win7 64bit) First of all I am not sure about the category this question falls into, so I am sorry if I am in the wrong section of the forum... I need to know how to change the standard path to the 'chaindata' folder for my wallet since I do not have enough free space on my system partition (C:) and could not find any (obvious) settings/options/... in the UI of the wallet. I need to move the regular main folder (C:/ ... 'User'/Appdata/Roaming/Ethereum) or just the chaindata folder (?) to another drive since these (blockchain) files would just fill up my system partition. Any ideas on how to do that? I would appreciate any help or tips. Thank you. Continue reading >>

How To Change The Blockchain Dir? #572

How To Change The Blockchain Dir? #572

Actually in Windows there's JUNCTION and, just like Linux, you can create a link of the existing data folder to another one (even in another drive) as you see fit. You can download junction from microsoft technet here: . No installation required. So, in this case, you just need to stop geth, move the data folder to another drive/folder/path and create a junction from the original path to the new one. Move the contents of "%USERPROFILE%\AppData\Roaming\Etherium\Geth" to "G:\Data\Geth" and wait for it to finish. Then execute (on a cmd prompt): cd "%USERPROFILE%\AppData\Roaming\Etherium" If you list the contents (dir) it will show something like: 05/11/2017 20:52 Geth [??\G:\Data\geth] Continue reading >>

How To Create A Private Or Custom Ethereum Blockchain Quickly

How To Create A Private Or Custom Ethereum Blockchain Quickly

Ethereum / Blockchain Developer, Data Viz, Decentralized Apps (dApps), Founder: ChainWave How to Create A Private or Custom Ethereum Blockchain Quickly This guide should be helpful to those quickly looking to spin up a private ethereum blockchain for testing. This is intended for users on Mac High Sierra, using geth 1.8.1-stable. The procedure for Windows or other variants MacOS variants should be similar, but not supported in this guide. Genesis files are the starting point of launching a private/custom chain and are used to define and configure a the new blockchain. The genesis file defines parameters of your private chain. If you wanted to change the block time, gas limit, or other variables- this is the place to do it and hence start working on a custom Ethereum blockchain. Initialize a new chain with genesis configuration In a an empty folder, Create a new genesis.json. Copy the genesis code from above and paste it into the genesis.json file. Create a folder called chaindata in the same folder as genesis.json. In the same directory level as /chaindata and genesis.json, run geth --datadir chaindata init genesis.json NOTE: --datair sets the location of your blockchain NOTE: init genesis.json sets your config file After this is configured, start geth with your custom data source: After that, there may be errors starting geth. One thing I noticed is that long paths may break geth. If you see an error like.../geth.ipc bind invalid, you need to shorten your path. Once that works and geth is running open a new tab (leaving the geth instance running in the original tab). We need to attach the.ipc file for geth and MIST (assuming we want to dev w/ MIST) Start mist using your private chain/network Then start MIST attached via RPC to your geth instance, open a new terminal w Continue reading >>

How To Set Up A Private Ethereum Blockchain Using Geth

How To Set Up A Private Ethereum Blockchain Using Geth

Were creating a new, completely private blockchain, so lets store it elsewhere. Run the following to store Node #1s copy of our private blockchain in a LocalNode1 folder (it will get created with this command): geth --datadir "~/Library/LocalNode1" init genesis.json (This assumes the genesis.json file you created is in the same directory from which youre running these commands.) Run the following to store Node #2s copy of our private blockchain in a LocalNode2 folder: geth --datadir "~/Library/LocalNode2" init genesis.json You can look inside the directories Geth just created at ~/Library/LocalNode1 and ~/Library/LocalNode2. Youll soon notice how the contents of the geth directory grows as we add to our chain. Now that we have the first block written and our configuration variables set, we can launch the geth console to interact with the blockchain from our first node. geth --datadir "~/Library/LocalNode1" --networkid 1234 --port 11111 --nodiscover console The networkid here has to match the chainID we set in the genesis.json file. --nodiscover means that even though were running an Ethereum client, we dont want other people in the world trying to connect to our chain. Finally, port is the port number our node will communicate with other peers over. Once you run that command, you should see a message Welcome to the Geth JavaScript console! appear towards the bottom of your terminal. We have just opened our console to interact with our first nodes copy of our blockchain. Now, open another tab in Terminal. Well now set up a console for our second Node to interact with the same blockchain. geth --datadir "~/Library/LocalNode2" --networkid 1234 --port 11112 --nodiscover console Notice that the datadir corresponds to the directory where we are storing the blockchain for our Continue reading >>

Bitcoin - Ethereum, Split The Data Directory - Stack Overflow

Bitcoin - Ethereum, Split The Data Directory - Stack Overflow

I currently run geth mist on Linux with an SSD and would like to move some (or all) of the chain data to an external drive to conserve space. I understand there is a command line option to move the data directory: will implementing this now slow syncing due to the external drive being much slower than my internal ssd? will it cause a re-sync of the entire block chain? Currently, I run the following script on my bitcoin blocks directory and it avoids both of those issues by keeping high throughput data on the SSD and moving large, but less frequently accessed data, to the external drive. #!/bin/bashset -eBLK_TARGET=/mnt/ssd/core/blocks #Replace with your destination, no trailing slashfind . -name '*.dat' -type f -printf '%f\n' > tomovewhile read line; do echo $line mv "$line" "$BLK_TARGET/$line" ln -s "$BLK_TARGET/$line" "$line"done Continue reading >>

Tutorial - How To Run A Full Ethereum Node On Windows - Deep Dot Web

Tutorial - How To Run A Full Ethereum Node On Windows - Deep Dot Web

Initiate ether transactions from an address to the other 1. All Geths versions are available for download at: For every version, an archive (.zip file) as well as an installer (.exe) package are available for download. The installer package will put geth automatically into your PATH, while the archive includes the command .exe files, so that they can be used without installation. For the purpose of this tutorial, we will install the Geth 1.6.1 release. Press on the Geth 1.6.1 installer link, as shown on the below screenshot and download the .exe file. 2. Press I Agree to accept the license agreement and start the installation process. 3. You will be prompted to choose whether or not to install Ethereums development tools in addition to Geth. For the purpose of this tutorial, we will install only Geth, so keep the box of Development tools unchecked. 4. You will then be prompted to choose the destination folder for your installation. By default, the program will be installed under C:\Program Files\Geth 5. The installation process will be completed, press close to exit the installation window. 6. Now, open a command prompt instance, via pressing the Windows button and typing command prompt. Press on the programs icon that will appear. 7. Now, change the directory to the directory where Geth is installed , via the chdir command, so as we installed Geth onto the Program Files directory, we will type the following onto the command prompts instance: 8. Now, type Geth onto the command prompt instance, after changing the directory and the client will start up and begin connecting to peers, as shown on the below screenshot: Congratulations, you are now running a full ethereum node, and receiving blocks as shown on the above screenshot. Running an Ethereum Node via Installing and Continue reading >>

Devchain

Devchain

Private Ethereum blockchain creator and development geth server With devchain you can easily create your own private Ethereum blockchains and private networks. The setup needed is abstracted away, and you can create multiple private blockchains in seconds! devchain is great for development because you can adjust mining difficulty and keep your blockchain state over multiple sessions, Plus, since you're using a real geth node, production release on geth will be a breeze! You can also quickly set up your own private networks to test on. Additionally, a Javascript file is preloaded into geth that gives you a ton of useful features. It automates account creation, distributing Ether to your accounts, and mining for transactions. It also displays transaction info and contains an object (dev) containing helper methods such as showing account balances and transferring Ether between your accounts. The first time you use the command it will initialize devchain. In your current directory this will create a folder called devchain/, a file called devgenesis.json, and a file called devconfig.js. The folder will contain your Ethereum blockchain data such as blocks and accounts. The file devgenesis.json is your blockchain's genesis file, which contains the data for the blockchain's first block. Go here to learn more about the genesis file. The genesis file's most useful property is the "difficulty". The difficulty refers to how fast new blocks can be mined. You can set a low difficulty for development purposes or a high difficulty to mimic actual production. The file devconfig.js lets you adjust the options of the geth preload script and the geth server options. The default options are shown below. All command options will overwrite the config file's expect staticNodes, which gets add Continue reading >>

Speeding Up Ethereum-wallet Initial Sync On Macos X

Speeding Up Ethereum-wallet Initial Sync On Macos X

Speeding up Ethereum-Wallet initial sync on MacOS X After experimenting with the Ethereum Wallet client on a linux machine I decided to install on my MacPro with OS X 10.11.5. I installed the latest Ethereum-Wallet 0.8.1 app from github and launched the app. I soon noticed that the sync would appear to freeze at various points and never achieved a full sync. This despite multiple force quits and restarts. After some poking around I found a nice summary of the problem and a workaround I wanted to share. StackEchange is my goto source when I have any problem and it paid off again today. Under the topic Help with slow mist sync I found several good answers and things to try. Caveat: what Im about the describe worked for me, but I am hardly a knowledgable expert and this may be wrong from a technical perspective. It turns out that, using the command line interface Ethereum client called geth, you can initiatea fast sync by setting certain flags when the program is run. Details are here . This will only work, however, if its the first attempt at a sync. I had made dozens of attempts, so I needed to delete all these files. The first thing I tried worked: I went to my user Library folder (Finder>Go>Go To Folder, then type ~/Library and select Go). Once there, locate the Ethereum folder and open it. Delete the folder called chaindata. (Dont worry. This folder will be recreated when you do the faster sync.) To be able to initiate a fast sync using the command line interface tool, we need to know where the geth program is located. What follows is the description for how to do this by user tayvano at the Ethereum StackExchange: Right click on the ethereum-wallet.app and select show package contents Open contents, then frameworks, then node, then geth Then you should right click o Continue reading >>

Ethereum Wallet Syncing Problems

Ethereum Wallet Syncing Problems

One of the most common problems with the Ethereum Wallet application is keeping the blockchain in sync with the Ethereum network. This page describes some of the common issues users may encounter while trying to sync the blockchain and potential methods to work around the problems. Note that Ethereum Wallet will not display your account balance correctly when it is not synced fully or correctly. Check that your the clock on your computer is close to real time. Change your system settings so that your system clock is synced to an NTP (Network Time Protocol) server. Slow Syncing Between Blocks 2,283,397 And 2,717,576 You may be encountering some problems syncing Ethereum Wallet (or Mist) to the Mainnet blockchain. A common problem when syncing Ethereum Wallet's blockchain data is that the syncing slows down between blocks 2,283,397 and 2,620,384 due to the attack on the Ethereum network (reference Why is my node synchronization stuck/extremely slow at block 2,306,843? ). The syncing also slows down between blocks 2,675,055 and 2,717,576 due to the state clearing process to remove the 20 million empty accounts created by the network attack. If you have a problem with slow syncing, the easiest way to recover from this slowdown is to remove your blockchain data and restart Ethereum Wallet. Ethereum Wallet will then perform a fast sync which skips over these attack blocks. WARNING: Make sure you back up your keystore directory so you don't accidentally delete your account information. Depending on your operating system, you will find the chaindata subdirectory in: Alternatively, you can run geth removedb to remove the blockchain data. Start Ethereum Wallet. It should now start fast syncing the blockchain data. Alternatively, run geth --syncmode "fast" --cache 1024 console an Continue reading >>

Heres How I Built A Private Blockchain Network, And You Cantoo

Heres How I Built A Private Blockchain Network, And You Cantoo

Heres how I built a private blockchain network, and you cantoo Nothing helps understand blockchains better than building oneyourself This is PART-4 of The Product Managers guide to the Blockchain series! If you somehow landed on my publication for the first time, Welcome! I recommend you start from part 1 , and then read part 2 and part3 before reading this post. However If you are the explorer type, read on! (Update: Heres the latest part 5 of the blockchain series ) In Part 3 of this series, we looked at the mechanics of Ethereum and also talked about the concept of Ethereum Accounts, Smart Contracts and Gas the fuel that helps all these pieces to work together. Its been a lot of reading so far, but while you can read all the blockchain content available on the internet, nothing helps understand blockchains better than building one yourself. So thats what I did. You can simply follow this post and build a little prototype to see how everything weve talked about so far comes together. Here is what we will accomplish in this post, Weve seen this before , but basically the Ethereum blockchain network is simply lots of EVM (Ethereum Virtual Machines) or nodes connected to every other node to create a mesh. Each node runs a copy of the entire blockchain and competes to mine the next block or validate a transaction. Whenever a new block is added, the blockchain updates and is propagated to the entire network, such that each node is in sync. To become a node in the Ethereum network, your computer will have to download and update a copy of the entire Ethereum blockchain. To achieve this Ethereum provides tools that you can download, connect to the Ethereum network with and then interact with it. These are: Geth if you have experience with web development and are interested i Continue reading >>

How To Build A Private Ethereum Blockchain

How To Build A Private Ethereum Blockchain

Step 5: Create an account to use as the coinbase for your blockchain node An Ethereum account is the public key that stores ether that will be used in your private blockchain to pay for gas fees. Before we start the blockchain, we need to create an account that the mining rewards will be deposited too. You will be prompted to set a password for the account, DONT FORGET YOUR PASSWORD, you will not be able to recover it later and wont be able to spend the ether you mine or unlock that account. After entering the password twice, you should expect to get a response back like this: Address: {941f1f0b08757457be0b52d83a1e3e566473ed61} This is the public key of the Ethereum account. Ethereum convention is to prefix accounts with 0x so the account is sometimes seen as 0x941f1fobo8757457be0b52d83a1e3e566473ed61. Step 6: Create JSON File for Genesis Block to Bootstrap Private Blockchain Using a text editor, create a file CustomGenesis.json with the following contents: Step 7: Initialize the blockchain from your CustomGenesis.json file go-ethereum/build/bin/geth init ./CustomGenesis.json You should expect to see output similar to this: INFO[0223|20:20:03] Allotted 128MB cache and 1024 file handles to /home/ubuntu/.ethereum/geth/chaindata INFO[0223|20:20:04] closed db:/home/ubuntu/.ethereum/geth/chaindata INFO[0223|20:20:04] Allotted 128MB cache and 1024 file handles to /home/ubuntu/.ethereum/geth/chaindata INFO[0223|20:20:04] successfully wrote genesis block and/or chain rule set: 5dd3be94dcbf5216aaa3e82700fb51a831257df5d45d984941a0a32ee0f960d8 Congratulations! You have initialized a private Ethereum blockchain!! Before we move on, lets take a break for some optional exploration of the files we have generated. In your home directory you will now see a hidden directory called.ether Continue reading >>

Change Blockchain Directory To Second Hdd? : Ethereum

Change Blockchain Directory To Second Hdd? : Ethereum

Welcome to r/Ethereum , the front page of the Web 3. No inappropriate behavior. This includes, but is not limited to: personal attacks, threats of violence, gossip, slurs of any kind, posting people's private information. Keep price discussion and market talk, memes & exchanges to subreddits such as /r/ethtrader Keep plain ICO advertisements to subreddits such as r/ethinvestor . Keep mining discussion to subreddits such as /r/EtherMining . No creating multiple accounts to get around Reddit rules. English language only. Please provide accurate translations where appropriate. Posts and comments must be made from an account at least 10 days old with a minimum of 20 comment karma. Exceptions may be made on a discretionary basis. Continue reading >>

More in ethereum