Omega core Wallet Daemon for headless wallets and masternodes.
For a list of all available wallet images see https://lepetitbloc.github.io/wallets/
-
Parameters value issues should be reported at: https://github.com/LePetitBloc/wallets
-
All other issues should be reported at: https://github.com/LePetitBloc/wallets-builder
The container can either be used as a classic headless wallet or a masternode, only the command arguments will differ.
- Run a wallet container and specify at least the
rpcuser
andrpcpassword
to interact with the Omega daemon:
docker run --name omegacoin-wallet --restart always -d lepetitbloc/omegacoind:0.12.5.1 -rpcuser=omegacoin-wallet -rpcpassword=5nbqagnl
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/.omegacoincore/omegacoin.conf
) to avoid retyping them when using the internalomegacoin-cli
.docker run --name omegacoin-wallet --restart always -d -v ${PWD}/wallet/:/home/omegacoin/ lepetitbloc/omegacoind:0.12.5.1
⚠️ Ensure that adata
directory exists and is writable in the mounted host directory.
- Once your wallet is running, you can print your main address:
docker exec omegacoin-wallet omegacoin-cli getaccountaddress ""
GK92mbjS9bCAUuU7DEyyuK9US1qLqkoyce
- Encrypt your wallet:
You can use
pwgen
first to generate your passphrase:pwgen 32 1
quohd4kaw9guvi8ie7phaighawaiLoo6
docker exec omegacoin-wallet omegacoin-cli encryptwallet quohd4kaw9guvi8ie7phaighawaiLoo6
Wallet encrypted; Omega Core server stopping, restart to run with encrypted wallet. The keypool has been flushed, you need to make a new backup.
- You must have received 1000 OMEGA on your wallet in a single transaction, and must have waited for, at least, 1 confirmation.
Note1: If the 1000 OMEGA came from multiple transactions, you can send them back to yourself.
Note2: Beware of the transaction cost, you should own 1001 OMEGA as a safety measure.
- Only then you may find the corresponding transaction
hash
andindex
:
docker exec omegacoin-wallet omegacoin-cli masternode outputs
{ "8e835a7d867d335434925c32f38902268e131e99a5821557d3e77f8ca3829fd8" : "0" }
- Then generate a masternode private key:
masternode genkey
7ev3RXQXYfztreEz8wmPKgJUpNiqkAkkdxt24C3ZKtg5qEVfou9
- And finally creates the
./wallet/.omegacoincore//masternode.conf
file, and fill in following this template:
mn01 masternode:21529 YouMasterNodePrivateKey TransactionHash 0 YourWalletAddress:100
touch ./wallet/.omegacoincore//masternode.conf
- As a classic wallet, create a
./masternode/.omegacoincore/omegacoin.conf
configuration file
rpcuser=omegacoin-mn01
rpcpassword=5nbqagnl
masternode=1
masternodeprivkey=7ev3RXQXYfztreEz8wmPKgJUpNiqkAkkdxt24C3ZKtg5qEVfou9
externalip=YOUR.EXTERNAL.IP:7777
- Run a container as a masternode:
docker run --name omegacoin-masternode --restart always -d -p 7777:7777 -p 7778:7778 -v ${PWD}/masternode/:/home/omegacoin/ lepetitbloc/omegacoind:0.12.5.1 -masternode=1
- Check the the number of
blocks
until the chain is sync:
docker exec omegacoin-masternode omegacoin-cli getinfo
- Once the chain synced you can start the masternode from your wallet:
docker exec omegacoin-wallet omegacoin-cli omegacoin-masternode start-all
You might need to unlock your wallet first:
docker exec omegacoin-wallet omegacoin-cli walletpassphrase quohd4kaw9guvi8ie7phaighawaiLoo6 60
⚠️ Mind the space before the command above, that's not a typo, it’s meant to avoid storing your passphrase in history.
- Then check the masternode status with your initial transaction hash:
docker exec omegacoin-wallet omegacoin-cli masternodelist | grep 6d94f70499c3f7ba2c59acaa5c04e54ef123d0e460bb07c55ace6464deaf3c85
"6d94f70499c3f7ba2c59acaa5c04e54ef123d0e460bb07c55ace6464deaf3c85-1": "ENABLED",
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
null
- Berkeley DB v4.8.30.NC
FROM lepetitbloc/bdb:4.8.30.NC
https://github.com/LePetitBloc/bdb/tree/4.8.30.NC https://hub.docker.com/r/lepetitbloc/bdb/
MIT