1Jan

Remove Geth Chaindata Mac

1 Jan 2000admin
Remove Geth Chaindata Mac 3,9/5 3448 votes

Older version of transmit The flagship application was Melodyne freelance study, Associate in Nursing atmosphere multitrack sound recording Associate in the Nursing process that would be concerning an audio application, either victimization wire or through a bridge plug-in special Melodyne. The smaller Melodyne editions – editor, assistant and essential – have additionally been increased.Ceremony Melodyne four Crack was on the market in many completely different editions.

Does anyone know how to point the ethereum wallet chaindata to an external hd.com/questions/1897/how-to-delete-or-reset-the-blockchain-in-geth-osx. Ethereum Community Forum. Geth install problems on mac. JeremyFox Member Posts: 1 February 2016 in Geth - Go Implementation. Hi - I'm new to ethereum and trying to figure out how to get it to work on mac. I installed Geth, but I can't get anything to work. When I run the command 'geth', I get the following response.

Moving to a new Mac?

Learn how to move your files to your new Mac. Do this before you erase the hard drive or follow any other steps.

Create a backup

Be sure you have an up-to-date backup of your important files and data. Learn how to back up your data in macOS. If you have macOS Catalina, skip the sign out of iTunes step.

Sign out of iTunes on macOS Mojave or earlier

Open iTunes. From the menu bar at the top of your computer screen or at the top of the iTunes window, choose Account > Authorizations > Deauthorize This Computer.

When prompted, enter your Apple ID and password. Then click Deauthorize.

Learn more about deauthorizing your computer using iTunes, including how to deauthorize all the computers you've used with your iTunes account.

Sign out of iCloud

Choose Apple menu  > System Preferences, then click Apple ID. Choose iCloud in the side panel and Turn off Find My Mac. Then select Overview in the side panel and click Sign Out.

If you have macOS Mojave or earlier, choose Apple menu  > System Preferences, click iCloud, and then Sign Out.

A dialog asks whether you want to keep a copy of your iCloud data on the Mac. Because you'll reformat the hard drive in a later step, just click Keep a Copy to proceed.

After you sign out of iCloud, your iCloud data remains in iCloud and on any other devices you've signed in to with your Apple ID.

Sign out of iMessage

If you're using OS X Mountain Lion or later, sign out of iMessage.

In the Messages app, choose Messages > Preferences, click iMessage, then click Sign Out.

If you're keeping paired Bluetooth devices, unpair them (optional)

If you have Bluetooth devices — such as keyboards, mice, or trackpads — paired with your Mac, and you plan to keep these devices, you can unpair them. This optional step prevents accidental input on the Mac if the computer and the Bluetooth devices have separate owners but remain within Bluetooth range of one another.

If you're unpairing an iMac, Mac mini, or Mac Pro, you must have a USB or other wired keyboard and mouse to complete these steps.

To unpair your Bluetooth devices, choose Apple menu > System Preferences, then click Bluetooth. Hover the pointer over the device that you want to unpair, then click the remove (x) button next to the device's name. When the dialog asks if you're sure, click Remove.

If you're using an iMac, Mac Pro, or Mac mini, use a USB or other wired keyboard and mouse to complete the next step.

Erase your hard drive and reinstall macOS

The best way to restore your Mac to factory settings is to erase your hard drive and reinstall macOS.

After macOS installation is complete, the Mac restarts to a Welcome screen and asks you to choose a country or region. If you want to leave the Mac in an out-of-box state, don't continue with the setup of your system. Instead, press Command-Q to shut down the Mac. When the new owner turns on the Mac, setup assistant will guide them through the setup process.

Learn more

No matter the model or condition, we can turn your device into something good for you and good for the planet. Learn how to trade in or recycle your Mac with Apple Trade In.

by Zack

When I first started developing on the Ethereum platform, syncing a node was one of the first few things I did. With no one to hold my hand and nowhere to consolidate all the common errors I encountered, I wasted weeks just syncing a node. It was such a headache that I almost gave up.

Not knowing the terminology only made it harder.

And so, in this article, I want to consolidate all the common errors you might face and explain the reasons behind each step when syncing a node. Hopefully, you won’t have such a nasty early experience as I did.

A quick intro

In Ethereum, developers create pieces of an application that run on the network. These are called smart contracts. Although you can deploy them manually without syncing to an Ethereum node, in the long run it’s more convenient for the development process to sync (especially when we want to use development frameworks like Truffle).

To sync an Ethereum node, we will need the following software:

  • Geth — Client for an Ethereum node.
  • Ethereum Wallet — User interface for an Ethereum node.

Let’s get started.

Install Geth

To download Geth, go here for Windows users. Then click on the “Geth for Windows” button.

For MacOS users, I recommend that you download using homebrew. You can do so with the following commands:

Refer to Geth’s instructions for more details.

Check that Geth is installed properly by typing geth version in the terminal (MacOS) or PowerShell (Windows).

Install Ethereum Wallet

We call the GUI that interacts with the network the “wallet”. You can find many different wallets for Ethereum with a quick Google search (such as Parity, Jaxx, and MyEtherWallet). I personally like using Ethereum Wallet. It has a user-friendly interface, and I’m also a bit biased because it is developed by Ethereum itself.

You can find the installer here.

Note: I prefer Ethereum Wallet to Mist. Mist is basically a browser that renders decentralized applications (dApps) and websites.

For the development of a smart contract, we will only need the Ethereum Wallet.

Mainnet vs Testnet

In Ethereum, there are two main networks: the mainnet and the testnet.

The mainnet is used to transact real Ether. The Ether’s value is tied to real fiat currency via cryptocurrency exchanges.

As developers, we do not want to run application tests with real money. That is what the testnet is for.

We call the testnet Ropsten.

Run Geth and Ethereum Wallet

When you’re developing a smart contract, you should sync the testnet first. We will only need to sync the mainnet when we are ready to deploy.

You will need about 30GB of storage space to sync a testnet. As there are more transactions in the mainnet, you will need about 100GB to sync a mainnet.

Note: some say that you need an SSD storage for fast writing so that the sync can catch up with the latest block. Personally, I find that HDD storage is alright. However, if given the choice, I would definitely use SSD storage.

For Windows users

For easy access, I recommend that you create a folder to store the blockchain. For example, “C:EthereumTestnet”.

After creating the folder, try running the following command:

Edit: It seems like some arguments have changed. If you encountered such error “flag provided but not defined: -data-dir”, try changing the argument name to — datadir instead to states where I stored my chaindata, which is the exact same one I specified for Geth.

For Mac Users

It is slightly simpler for MacOS, because the chaindata is downloaded automatically to the library and not hidden from us. So, we won’t need to specify the data directory.

Nevertheless, I recommend creating a script file to make running Geth and Ethereum Wallet easier.

Note: Geth has to run before Ethereum Wallet.

Running Ethereum Wallet alone will automatically start the syncing process as it will automatically run a Geth client in the background. This is user-friendly, but does not enable the RPC services we want to use. Thus, we want to ensure RPC is enabled in both our Geth and Ethereum Wallet execution.

A few notes

  1. The syncing process is very long, and can take up to 2–3 days. Please have patience and consider leaving your computer turned on overnight.
  2. The syncing speed depends on your internet speed, peers count, and writing speed of your storage drive.
  3. As the data are stored in blocks and linked together, corruption in one block can corrupt the whole chaindata. This can potentially waste your effort in waiting days for the node to sync. Therefore, it is very important to shut down your Geth properly. In certain cases, you might want to rollback. But prevention is better than cure here.
  4. The progress bar on your Ethereum Wallet is NOT accurate. Relying on it will give you a lot of anxiety and frustration.
  5. Geth runs on port 30303 for external listening.
  6. The default port used for internal communication, for example between your wallet and Geth, is 8545.

Make sure your port to Geth client is opened

It’s really important to make sure that the connection to your Geth client is not limited. One huge headache I encountered was to let my firewall limit the number of connections I could have through the Geth client.

You can spot this problem by looking at the peers count. If it stays consistently low at about 1–3 peers (for at least half an hour), there is a good chance your connection is limited. A healthy range is above 5 peers.

MacOS users

When you run Geth, there should be a notification for you to allow connection. Well, of course, click on “Allow.

To check, go to System Preferences> System & Privacy.

Under Firewall tab, click on Firewall Options.

Windows users

To open your port, go to Control panel > System and Security > Windows defender firewall.

Click on Advanced settings. On the side panel, click on Inbound Rules.

The inbound ports you want to open are TCP and UDP 30303. So I created one rule for TCP 30303 and another for UDP 30303.

You may need to open your outbound ports for TCP 30303 too.

Note that any third party firewall/anti-virus might limit your connections as well, so make sure to configure it accordingly.

Attach to Geth

To retrieve more information about your node, you can attach to the Geth client and execute commands with it using the RPC services.

Here’s a simple way to check your syncing status: attach to the client by entering the following command on a separate terminal/console.

Remove Geth Chaindata Mac

geth attach http://127.0.0.1:8545

Again, you might want to store it in a batch/script file for your own convenience.

After running the command, you should see something like this.

Type web3.eth and you should see a lot of information. To retrieve specific information on syncing, type web3.eth.syncing instead.

As you can see, the progress bar found at the top of the Ethereum Wallet is merely a comparison between the highestBlock and the currentBlock. As the highestBlock known to your computer might not be the actual highest block, the progress bar might not reflect the real progress.

In fact, the highestBlock and knownStates will continue to increase as you sync your nodes.

Some final points

As the technology is rapidly changing, always use the stable version of the client and wallet to avoid giving yourself more headaches.

Also, note that there is always a workaround for any of the issues you face. When you face a problem syncing, you can try to search for solutions as you are likely not the first one to face the same problem.

And always remind yourself that you do not need to sync a node to develop a smart contract. Doing so only helps to facilitate your understanding of the environment as well as your development process. So, don’t beat yourself up over it if you encounter problems so early in the development process.

For more of such articles, follow me or visit my site — A developer’s perspective.