forked from lthn/blockchain
Refactored GitHub Actions workflows to upload specific package formats for each platform and standardized the release build process. Updated CMake and Makefile to support a configurable build version, now set to 6.0.0. Adjusted config and version headers to reflect the new versioning scheme and improved package configuration.
52 lines
3.4 KiB
CMake
52 lines
3.4 KiB
CMake
# Tokenomics
|
||
set(coin 1000000000000 CACHE STRING "COIN" )
|
||
set(premine_amount 4000000000000000000 CACHE STRING "PREMINE_AMOUNT" )
|
||
set(tx_default_fee 10000000000 CACHE STRING "TX_DEFAULT_FEE" )
|
||
set(tx_minimum_fee 10000000000 CACHE STRING "TX_MINIMUM_FEE" )
|
||
set(currency_block_reward 1000000000000 CACHE STRING "CURRENCY_BLOCK_REWARD" )
|
||
set(currency_display_decimal_point 12 CACHE STRING "CURRENCY_DISPLAY_DECIMAL_POINT" )
|
||
|
||
# Chain Config
|
||
set(currency_name_abr "LTHN" CACHE STRING "CURRENCY_NAME_ABR" )
|
||
set(currency_name_base "Lethean" CACHE STRING "CURRENCY_NAME_BASE" )
|
||
set(currency_name_short_base "Lethean" CACHE STRING "CURRENCY_NAME_SHORT_BASE" )
|
||
|
||
|
||
# prefix is 'iT', non auditable wallets then use 'H', auditable wallets use 'h'; 'N' is a base addr, 'n' is a sub address,
|
||
set(address_prefix 0x1eaf7 CACHE STRING "CURRENCY_PUBLIC_ADDRESS_BASE58_PREFIX" ) # addresses start with 'iTHN'
|
||
set(address_prefix_integrated 0xdeaf7 CACHE STRING "CURRENCY_PUBLIC_INTEG_ADDRESS_V2_BASE58_PREFIX" ) # integrated addresses start with 'iTHn'
|
||
set(address_prefix_auditable 0x3ceff7 CACHE STRING "CURRENCY_PUBLIC_AUDITABLE_ADDRESS_BASE58_PREFIX" ) # auditable addresses start with 'iThN'
|
||
set(address_prefix_auditable_integrated 0x8b077 CACHE STRING "CURRENCY_PUBLIC_AUDITABLE_INTEG_ADDRESS_BASE58_PREFIX" ) # auditable integrated addresses start with 'iThn'
|
||
set(base_reward_dust_threshold 1000000 CACHE STRING "BASE_REWARD_DUST_THRESHOLD")
|
||
set(default_dust_threshold 0 CACHE STRING "DEFAULT_DUST_THRESHOLD" )
|
||
set(difficulty_pow_starter 1 CACHE STRING "DIFFICULTY_POW_STARTER" )
|
||
set(difficulty_pos_target 120 CACHE STRING "DIFFICULTY_POS_TARGET" )
|
||
set(difficulty_pow_target 120 CACHE STRING "DIFFICULTY_POW_TARGET" )
|
||
set(difficulty_window 720 CACHE STRING "DIFFICULTY_WINDOW" )
|
||
set(difficulty_lag 15 CACHE STRING "DIFFICULTY_LAG" )
|
||
set(difficulty_cut 60 CACHE STRING "DIFFICULTY_CUT" )
|
||
set(p2p_maintainers_pub_key "8f138bb73f6d663a3746a542770781a09579a7b84cb4125249e95530824ee607" CACHE STRING "P2P_MAINTAINERS_PUB_KEY" )
|
||
|
||
if (TESTNET)
|
||
set(p2p_default_port 36942 CACHE STRING "P2P_DEFAULT_PORT" )
|
||
set(rpc_default_port 36941 CACHE STRING "RPC_DEFAULT_PORT" )
|
||
set(stratum_default_port 36940 CACHE STRING "STRATUM_DEFAULT_PORT" )
|
||
set(package_name "lethean-testnet-cli" CACHE STRING "CPACK_PACKAGE_NAME" )
|
||
else ()
|
||
message(CHECK_FAIL "bad")
|
||
set(p2p_default_port 36942 CACHE STRING "P2P_DEFAULT_PORT" )
|
||
set(rpc_default_port 36941 CACHE STRING "RPC_DEFAULT_PORT" )
|
||
set(stratum_default_port 36940 CACHE STRING "STRATUM_DEFAULT_PORT" )
|
||
set(package_name "lethean-cli" CACHE STRING "CPACK_PACKAGE_NAME" )
|
||
endif ()
|
||
# installer config
|
||
set(package_vendor "Lethean Community" CACHE STRING "CPACK_PACKAGE_VENDOR" )
|
||
set(package_description "A privacy‑preserving blockchain node" CACHE STRING "CPACK_PACKAGE_DESCRIPTION_SUMMARY" )
|
||
set(package_version "${BUILD_VERSION}" CACHE STRING "CPACK_PACKAGE_VERSION" )
|
||
set(package_contact "support@lt.hn" CACHE STRING "CPACK_PACKAGE_CONTACT" )
|
||
set(package_website "https://github.com/letheanVPN/blockchain" CACHE STRING "CPACK_PACKAGE_HOMEPAGE_URL" )
|
||
set(package_macos_installer "PKG" CACHE STRING "CPACK_GENERATOR" )
|
||
set(package_macos_dmg_background "DMG" CACHE STRING "CPACK_DMG_BACKGROUND_IMAGE" )
|
||
set(package_macos_pkg_productbuild_identifier "com.lethean.blockchainnode" CACHE STRING "CPACK_PRODUCTBUILD_IDENTIFIER" )
|
||
set(package_macos_pkg_productbuild_signer "Developer ID Installer: Your Company (TEAMID)" CACHE STRING "CPACK_PRODUCTBUILD_SIGNING_IDENTITY" )
|
||
|