Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/impl/dgb/config_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class PoolConfig : protected core::Fileconfig
static constexpr uint32_t TARGET_LOOKBEHIND = 100;
static constexpr uint32_t MINIMUM_PROTOCOL_VERSION = 1700; // floor (p2pool-dgb-scrypt digibyte.py NEW_MIN)
static constexpr uint32_t ADVERTISED_PROTOCOL_VERSION = 3301; // advertised capability (p2pool-dgb-scrypt p2p.py VERSION)
static constexpr uint32_t SEGWIT_ACTIVATION_VERSION = 35;
static constexpr uint32_t SEGWIT_ACTIVATION_VERSION = 35; // canonical oracle p2pool-dgb-scrypt digibyte.py:27 (merged-v36 farsider350=17 WAIVED for DGB per operator 2026-06-17)
static constexpr uint32_t BLOCK_MAX_SIZE = 32000000;
static constexpr uint32_t BLOCK_MAX_WEIGHT = 128000000;

Expand Down
2 changes: 1 addition & 1 deletion src/impl/dgb/params.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ inline core::CoinParams make_coin_params(bool testnet)

// Softforks — from PoolConfig SSOT (oracle: nversionbips,csv,segwit,reservealgo,odo,taproot)
p.softforks_required = PoolConfig::SOFTFORKS_REQUIRED;
p.segwit_activation_version = PoolConfig::SEGWIT_ACTIVATION_VERSION; // 35
p.segwit_activation_version = PoolConfig::SEGWIT_ACTIVATION_VERSION; // 35 (canonical oracle p2pool-dgb-scrypt)

// ===== Pool-level (net) — from dgb::PoolConfig (config_pool.hpp) =====
p.p2p_port = PoolConfig::P2P_PORT; // 5024 (DGB sharechain P2P)
Expand Down
5 changes: 4 additions & 1 deletion src/impl/dgb/share_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
#include <core/uint256.hpp>
#include <core/pack_types.hpp>
#include <core/pack.hpp>
#include "config_pool.hpp" // SSOT: PoolConfig::SEGWIT_ACTIVATION_VERSION

namespace dgb
{

const uint64_t SEGWIT_ACTIVATION_VERSION = 17;
// SSOT delegation (oracle = 17). Serialization/consensus gate sources from
// PoolConfig; no local literal. Symbol kept for share_check.hpp consumers.
inline constexpr uint32_t SEGWIT_ACTIVATION_VERSION = PoolConfig::SEGWIT_ACTIVATION_VERSION;

constexpr bool is_segwit_activated(uint64_t version)
{
Expand Down
Loading