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 with 0.21.4 security patches
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
All security patches from Litecoin 0.21.4 have been backported:
- CVE-2023-33297: Remote peer crash vulnerability
- CVE-2024-35202: Blocktxn message DoS (FillBlock assertion crash)
- Mutated blocks fix: Prevents peers from interfering with block relay
- Miniupnpc 2.2.2: Fixes infinite loop vulnerability (local network DoS)
- Improved peer connection handling
- Better DoS protection
- Reduced network fingerprinting
- Descriptor wallets: Modern wallet architecture (optional)
- Improved coin selection: Smarter UTXO management
- Hardware wallet support: Better integration with external signers
- Full backward compatibility: Your existing wallet.dat works without changes
- 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
Defcoin 2.0 maintains full compatibility with the original Defcoin chain. Some newer Bitcoin/Litecoin features are disabled to preserve consensus.
| Parameter | Value | Notes |
|---|---|---|
| Block Time | 2 minutes | 120 seconds target |
| Difficulty Retarget | 720 blocks | ~1 day |
| PoW Algorithm | Scrypt (1024,1,1) | Memory-hard, ASIC-resistant |
| Initial Block Reward | 50 DFC | |
| Halving Interval | 840,000 blocks | ~3.2 years |
| Max Supply | ~84 million DFC |
| Feature | Status | Since |
|---|---|---|
| P2SH (BIP16) | Enabled | Genesis |
| BIP34 (Height in Coinbase) | Enabled | Block 710,000 |
These features are disabled to maintain chain compatibility with Defcoin 1.x:
| Feature | Status | Reason |
|---|---|---|
| SegWit (BIP141) | Disabled | Never activated on original chain |
| CSV (BIP68/112/113) | Disabled | Never activated on original chain |
| BIP65 (CLTV) | Disabled | Never activated on original chain |
| BIP66 (Strict DER) | Disabled | Never activated on original chain |
| Taproot (BIP340/341) | Disabled | Requires SegWit |
| MWEB (Mimblewimble) | Disabled | New feature, may enable in v2.1+ |
Note: These features were never activated on the original Defcoin network during the BIP9 signaling period (2018-2019). Enabling them now would break consensus with the existing chain. Future soft-fork activation may be considered for new features.
| 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 -printtoconsoleRename the Defcoin units from mDFC and μDFC in favor of a more flavorful name similar to Litecoin.
This is stored in the file src/qt/bitcoinunits.cpp on lines 43 - 45
case BTC: return QString("DFC");
case mBTC: return QString("mDFC");
case uBTC: return QString::fromUtf8("μDFC");
and on lines 54 - 56
case BTC: return QString("Defcoins");
case mBTC: return QString("Milli-Defcoins (1 / 1" THIN_SP_UTF8 "000)");
case uBTC: return QString("Micro-Defcoins (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)");
Defcoin Core 2.0.0 is based on:
- Litecoin Core 0.21.x (with 0.21.4 security patches)
- Bitcoin Core
- Original Defcoin by mspicer