Defcoin is a peer-to-peer digital currency that enables instant, low-cost payments to anyone, anywhere in the world. Defcoin uses Scrypt proof-of-work with 2-minute block times and a simple, predictable monetary policy.
Key Features:
- 2-minute block time (faster than Bitcoin/Litecoin)
- Scrypt proof-of-work algorithm
- 50 DFC initial block reward with halving schedule
- Based on Litecoin 0.21.x codebase for modern features
Defcoin Core is the reference implementation that enables the use of this currency.
For more information, visit the Defcoin website or the original repository.
Defcoin Core 2.0.0 is a major upgrade rebased from Litecoin 0.15.x to Litecoin 0.21.x, bringing 3+ years of improvements while preserving all Defcoin consensus rules.
- Faster sync: Improved block download and validation
- Reduced memory usage: Better memory management and caching
- Compact block relay: Faster block propagation across the network
- Fixes for CVE-2023-33297 and CVE-2024-35202
- Improved peer connection handling
- Better DoS protection
- Descriptor wallets: Modern wallet architecture (optional)
- Native SegWit by default: Lower fees with bech32 addresses (dfc1...)
- Improved coin selection: Smarter UTXO management
- Hardware wallet support: Better integration with external signers
- Updated P2P protocol: More efficient peer communication
- Improved Tor support: Better privacy options
- BIP155 (addrv2): Support for next-gen network addresses
- Updated RPC API: New commands and improved responses
- Better logging: More detailed debug information
- Modern C++17 codebase: Easier to maintain and extend
- Scrypt proof-of-work: Same mining algorithm
- 2-minute block time: No change to block schedule
- 720-block difficulty retarget: Same adjustment period
- All consensus rules: 100% compatible with existing chain
- Wallet compatibility: Your wallet.dat works without changes
Defcoin Core 2.0.0 is a major upgrade based on Litecoin 0.21.x. To upgrade:
- Backup your wallet - Copy
wallet.datfrom your Defcoin data directory - Close Defcoin Core 1.x
- Install Defcoin Core 2.0.0
- On first run, the wallet will automatically reindex the blockchain
- Your existing wallet and addresses will work without changes
Data Directory Locations:
- Windows:
%APPDATA%\Defcoin\ - Linux:
~/.defcoin/ - macOS:
~/Library/Application Support/Defcoin/
Defcoin Core is released under the terms of the MIT license. See https://opensource.org/licenses/MIT.
See the build documentation in the doc folder:
./autogen.sh
./configure
make
make install # optionaldefcoind- Daemondefcoin-qt- GUI walletdefcoin-cli- Command-line RPC clientdefcoin-tx- Transaction utilitydefcoin-wallet- Wallet utility
| Parameter | Mainnet | Testnet |
|---|---|---|
| P2P Port | 1337 | 31337 |
| RPC Port | 1335 | 31335 |
| Address Prefix | D | m/n |
| Bech32 Prefix | dfc | tdfc |
The main branch contains the latest stable release. Development happens in
feature branches.
- Original Defcoin: https://github.com/mspicer/defcoin
- Defcoin 2.0: https://github.com/packetloss404/defcoin
- Issues: https://github.com/packetloss404/defcoin/issues
Run unit tests with:
make checkRun functional tests with:
test/functional/test_runner.pyAfter building, test sync against the existing Defcoin network:
./src/defcoind -printtoconsoleDefcoin Core 2.0.0 is based on:
- Litecoin Core 0.21.x
- Bitcoin Core
- Original Defcoin by mspicer