Simplify Dogecoin setup to use Makefile targets
- Replace manual installation steps with make install-dogecoin - Replace manual configuration with make dogecoin-config - Remove raw dogecoin-cli commands in favor of make targets - Keep documentation focused on what users need to do, not implementation details
This commit is contained in:
parent
cb0676e701
commit
7c9796c56c
1 changed files with 19 additions and 36 deletions
|
|
@ -112,55 +112,38 @@ log.sweep_operation(payment, "DOGE auto-sweep successful", tx_hash, swept_amount
|
|||
|
||||
#### 1. Install Dogecoin Core
|
||||
```bash
|
||||
# Download latest release (v1.14.6)
|
||||
wget https://github.com/dogecoin/dogecoin/releases/download/v1.14.6/dogecoin-1.14.6-x86_64-linux-gnu.tar.gz
|
||||
tar -xzf dogecoin-1.14.6-x86_64-linux-gnu.tar.gz
|
||||
sudo mv dogecoin-1.14.6/bin/* /usr/local/bin/
|
||||
|
||||
# Or use Make command for automatic installation
|
||||
# Automatic installation with Make
|
||||
make install-dogecoin
|
||||
```
|
||||
|
||||
This command downloads and installs Dogecoin Core v1.14.6 to `/usr/local/bin`.
|
||||
|
||||
#### 2. Configure Pruned Mode
|
||||
Create `~/.dogecoin/dogecoin.conf`:
|
||||
```ini
|
||||
# Enable server mode for RPC
|
||||
server=1
|
||||
daemon=1
|
||||
|
||||
# RPC credentials - CHANGE THESE IN PRODUCTION!
|
||||
rpcuser=mps_doge_user
|
||||
rpcpassword=change_this_password_in_production
|
||||
rpcallowip=127.0.0.1
|
||||
rpcport=22555
|
||||
|
||||
# PRUNED MODE - keeps only ~2GB instead of 50GB!
|
||||
prune=2000
|
||||
|
||||
# Connect to reliable peers for faster sync
|
||||
addnode=seed.dogechain.info
|
||||
addnode=seed.multidoge.org
|
||||
addnode=seed.dogecoin.com
|
||||
|
||||
# Hot wallet for Make Post Sell
|
||||
wallet=make_post_sell_hot_wallet
|
||||
```bash
|
||||
# Create configuration for pruned node
|
||||
make dogecoin-config
|
||||
```
|
||||
|
||||
This creates `~/.dogecoin/dogecoin.conf` with:
|
||||
- Pruned mode (2GB storage limit)
|
||||
- RPC server configuration
|
||||
- Reliable peer connections
|
||||
- Hot wallet setup
|
||||
|
||||
#### 3. Start & Sync (Much Faster!)
|
||||
```bash
|
||||
# Start dogecoin daemon (or use Make command)
|
||||
dogecoind
|
||||
# OR
|
||||
# Start dogecoin daemon
|
||||
make dogecoin-node
|
||||
|
||||
# Initial sync takes ~2-4 hours (vs 12+ hours for full node)
|
||||
# Watch progress:
|
||||
dogecoin-cli getblockchaininfo
|
||||
# Monitor sync progress
|
||||
make dogecoin-status
|
||||
|
||||
# When "blocks" equals "headers", sync is complete
|
||||
```
|
||||
|
||||
Initial sync takes ~2-4 hours for pruned mode. The status command shows:
|
||||
- Current block height vs total headers
|
||||
- Sync percentage
|
||||
- When blocks equal headers, sync is complete
|
||||
|
||||
#### 4. Configure Make Post Sell
|
||||
```ini
|
||||
# Enable Dogecoin payments
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue