@@ -485,7 +485,7 @@ uint256 share_init_verify(const ShareT& share, bool check_pow = true)
485485
486486 constexpr int64_t ver = ShareT::version;
487487
488- if constexpr (ver >= btc::SEGWIT_ACTIVATION_VERSION )
488+ if constexpr (ver >= btc::PoolConfig:: SEGWIT_ACTIVATION_VERSION )
489489 {
490490 if constexpr (requires { share.m_segwit_data ; })
491491 {
@@ -563,7 +563,7 @@ uint256 share_init_verify(const ShareT& share, bool check_pow = true)
563563 // segwit_data (optional)
564564 if constexpr (requires { share.m_segwit_data ; })
565565 {
566- if constexpr (ver >= btc::SEGWIT_ACTIVATION_VERSION )
566+ if constexpr (ver >= btc::PoolConfig:: SEGWIT_ACTIVATION_VERSION )
567567 {
568568 // PossiblyNoneType: ALWAYS serialize (p2pool writes default when None)
569569 if (share.m_segwit_data .has_value ()) {
@@ -671,7 +671,7 @@ uint256 share_init_verify(const ShareT& share, bool check_pow = true)
671671 // --- Merkle root ---
672672 // For segwit-activated shares, use segwit_data.txid_merkle_link; otherwise merkle_link
673673 uint256 merkle_root;
674- if constexpr (ver >= btc::SEGWIT_ACTIVATION_VERSION )
674+ if constexpr (ver >= btc::PoolConfig:: SEGWIT_ACTIVATION_VERSION )
675675 {
676676 if constexpr (requires { share.m_segwit_data ; })
677677 {
@@ -1163,7 +1163,7 @@ uint256 generate_share_transaction(const ShareT& share, TrackerT& tracker, bool
11631163 size_t n_outs = payout_outputs.size () + 1 /* donation */ + 1 /* OP_RETURN commitment */ ;
11641164 // Segwit commitment output (if applicable)
11651165 bool has_segwit = false ;
1166- if constexpr (ver >= btc::SEGWIT_ACTIVATION_VERSION )
1166+ if constexpr (ver >= btc::PoolConfig:: SEGWIT_ACTIVATION_VERSION )
11671167 {
11681168 if constexpr (requires { share.m_segwit_data ; })
11691169 {
@@ -1282,7 +1282,7 @@ uint256 generate_share_transaction(const ShareT& share, TrackerT& tracker, bool
12821282
12831283 if constexpr (requires { share.m_segwit_data ; })
12841284 {
1285- if constexpr (ver >= btc::SEGWIT_ACTIVATION_VERSION )
1285+ if constexpr (ver >= btc::PoolConfig:: SEGWIT_ACTIVATION_VERSION )
12861286 {
12871287 // PossiblyNoneType: ALWAYS serialize (p2pool writes default when None).
12881288 // Must match share_init_verify — both paths must produce identical ref_hash.
@@ -1973,7 +1973,7 @@ uint256 verify_share(const ShareT& share, TrackerT& tracker)
19731973
19741974 if constexpr (requires { share.m_segwit_data ; })
19751975 {
1976- if constexpr (ver >= btc::SEGWIT_ACTIVATION_VERSION )
1976+ if constexpr (ver >= btc::PoolConfig:: SEGWIT_ACTIVATION_VERSION )
19771977 {
19781978 // PossiblyNoneType: ALWAYS serialize (p2pool writes default when None)
19791979 if (share.m_segwit_data .has_value ()) {
0 commit comments