Brad Lucas

Programming, Clojure and other interests

Run Geth Node With Multiple Unlocked Accounts

August 20, 2017

There is a bit of a trick to run a Geth node with multiple unlocked accounts. It has to do with how to pass in the parameters.

There are two parameters to focus in on. The unlock and the password.

The first, the unlock accepts a list of accounts or a list of indexes into your account list. To keep you command line short you can, for example, pass in "0, 1" to unlock your first two accounts.

Next, you need to get your password passed in if you are starting geth from a script. The way to do this is to put your password in a file and pass that file in through the password command.

Continue reading →

Multiple Geth Instances Warning

August 19, 2017

A point to remember when developing using geth locally. If you end up with multiple geth instances running you will get confused. Here I was running a geth instance in the background under screen. Today, not remembering it was there I started testrpc and then got the following error.

Error: Error: could not unlock signer account

So as a suggestion do a ps aux | grep geth once in a while.

Continue reading →


August 18, 2017

Ran across this article the other day.

"Inside the world of Silicon Valley's 'coasters' — the millionaire engineers who get paid gobs of money and barely work"

What I found myself thinking about after reading it was an experience I had at a company where they had setup a similar situation after buying a startup. But, in this case the situation was different in an important way. The company put the startup people in charge of their own group and told them to run it. The acquiring company didn't put one of their own in charge. They just assumed the startup would work within the larger company without any strong tie back into the buyer.

Continue reading →

Send Eth From Geth Console

August 17, 2017

A log of a session showing how to check account balances and then send ETH. In this example I'm running a geth console on a local node and I want to send 10 ETH to two different accounts.

First, I list the accounts and then see how much ETH I have in the default account.

> personal.listAccounts

> web3.fromWei(eth.getBalance(eth.coinbase)); 

Before attempting to send I need to unlock the account. This prompts you for your password.

Continue reading →

Org Mode Copy Just Headers

August 16, 2017

A tip for working with org-mode. The situation is where you have a large outline but want to extract just the headers. Say you want to expand only two levels and want to extract only those headers.

The key is org-copy-visible.

Expand your tree so you only see what you want to extract. Then select the tree and execute org-copy-visible (C-c C-x v).

Then paste the extracted headers somewhere else.

Continue reading →