Sign inSign up

lepetitbloc/goacoind

By lepetitbloc

Updated about 8 years ago

Goacoin Wallet Daemon for headless wallets and masternodes.

Image
1

551

lepetitbloc/goacoind repository overview

Goacoin Wallet Daemon (goacoind)

Goacoin Wallet Daemon for headless wallets and masternodes. :palm_tree:

Usage

The container can either be used as a classic headless wallet or a masternode, only the command arguments will differ.

Headless wallet
  1. Run a wallet container and specify at least the rpcuser and rpcpassword to interact with the Goacoin daemon:
docker run lepetitbloc/goacoind --name goacoin -rpcuser=goacoinrpc -rpcpassword=4VvDhcoqFUcZbmkWUMJz8P443WLfoaMmiREKSByJaT4j

We recommend to mount a volume for easier access to the data and the configuration files. You should also create a configuration for your RPC credentials (see wallet/conf/wallet.conf) to avoid retyping them when using the internal goacoin-cli.

docker run lepetitbloc/goacoind --name goacoin -v ./goacoin:/home/goacoin/`

:snake: Ensure that a data directory exists and is writable in the mounted host directory.

  1. Once your wallet is running, you can print your main address:
docker exec -d goacoin goacoin-cli getaccountaddress ""

GK92mbjS9bCAUuU7DEyyuK9US1qLqkoyce

  1. Encrypt your wallet:

You can use pwgen first to generate your passphrase:

pwgen 32 1

quohd4kaw9guvi8ie7phaighawaiLoo6

docker exec -d goacoin goacoin-cli encryptwallet quohd4kaw9guvi8ie7phaighawaiLoo6

Wallet encrypted; GoaCoin Core server stopping, restart to run with encrypted wallet. The keypool has been flushed, you need to make a new backup.

:ocean: Don't forget to backup your passphrase.

Masternode
Prerequisites
  1. You must have received 1000 GOA on your wallet in a single transaction, and must have waited for, at least, 1 confirmation.

Note1: If the 1000 GOA came from multiple transactions, you can send them back to yourself.

Note2: Beware of the transaction cost, you should own 1001 GOA as a safety measure.

  1. Only then you may find the corresponding transaction hash and index :
docker exec -d goacoin goacoin-cli masternode outputs
{
 "8e835a7d867d335434925c32f38902268e131e99a5821557d3e77f8ca3829fd8" : "0"
}
  1. Then generate a masternode private key:
masternode genkey
7ev3RXQXYfztreEz8wmPKgJUpNiqkAkkdxt24C3ZKtg5qEVfou9
  1. And finally creates the ./goacoin/conf/masternode.conf file, and fill in following this template:

mn01 masternode:21529 YouMasterNodePrivateKey TransactionHash 0 YourWalletAddress:100

touch ./goacoin/conf/masternode.conf
Setup
  1. As a classic wallet, you should create a masternode/conf/wallet.conf configuration file
rpcuser=goacoinrpc
rpcpassword=4VvDhcoqFUcZbmkWUMJz8P443WLfoaMmiREKSByJaT4j
  1. Run a container as a masternode:
docker run lepetitbloc/goacoind --name masternode -v ./masternode:/home/goacoin/ -masternode=1 -masternodeprivkey=YourMasternodePrivKey -addnode=54.37.74.53
  1. Check the status until the masternode is started:
docker exec -d masternode goacoin-cli getinfo

docker-compose

You could setup both at the same time using docker-compose. Check the provided docker-compose.yml as an example and tweak it to your needs!

docker-compose up --build

Resources

Parent project

This project is part of the walletd initiative: https://github.com/LePetitBloc/walletd

Parent image

  • Berkeley DB v5.3.28.NC FROM lepetitbloc/bdb:5.3.28.NC

Licence

MIT

Tag summary

Content type

Image

Digest

Size

185.1 MB

Last updated

about 8 years ago

docker pull lepetitbloc/goacoind