Skip to content
 
 

Repository files navigation

DeFCoN Core

Build Release License: MIT

DeFCoN Core is the reference implementation of the DeFCoN (DFCN) network: a full node, a wallet and the masternode software, in one program. It is derived from Dash Core, and through it from Bitcoin Core.

The network

Consensus Proof-of-stake (the first 999 blocks were proof-of-work)
Block target 2.5 minutes
Masternode collateral 1,000,000 DFCN
Finality LLMQ ChainLocks and InstantSend
Default P2P port 8192

Version 23 activates at block 144,888 on mainnet and is a mandatory upgrade: every node must run it before block 144,768, where v22 nodes stop receiving the chain. It moves ChainLocks to the Q60 quorum, which is structurally unable to produce two conflicting ChainLocks, and starts the Sentinel Layer, a service-level liveness record for masternodes, which starts observing at block 145,464 (576 blocks after the activation) and does not punish anyone in v23. See the v23.0.0 release for the full notes.

Running a node

Download the archive for your platform from the latest release, verify it against the published SHA256SUMS, and start defcond (daemon) or defcon-qt (graphical wallet). defcon-cli help lists the RPC commands.

Building from source

The simplest route is the depends system, which builds every dependency at a pinned version:

sudo apt install -y build-essential automake autotools-dev cmake pkg-config python3 bison git make libtool
git clone https://github.com/defcon-project/defcon
cd defcon
make -C depends HOST=x86_64-pc-linux-gnu -j4
./autogen.sh
CONFIG_SITE=$PWD/depends/x86_64-pc-linux-gnu/share/config.site ./configure
make -j4

Platform-specific notes are in doc/: Unix, macOS, Windows.

Testing

make check                          # unit tests
test/functional/test_runner.py      # functional tests (needs a build with the wallet)

Every pull request is built and tested by GitHub Actions before it can be merged.

Contributing and security

Contributions are welcome; see CONTRIBUTING.md. Please report security issues privately as described in SECURITY.md, never in a public issue.

License

DeFCoN Core is released under the MIT license. See COPYING.

About

DeFCoN Core

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages