2017-05-25 09:13:59 +00:00
|
|
|
|
|
|
|
|
add_custom_target( build_hardfork_hpp
|
|
|
|
|
COMMAND cat-parts "${CMAKE_CURRENT_SOURCE_DIR}/hardfork.d" "${CMAKE_CURRENT_BINARY_DIR}/include/graphene/chain/hardfork.hpp" )
|
|
|
|
|
set_source_files_properties( "${CMAKE_CURRENT_BINARY_DIR}/include/graphene/chain/hardfork.hpp" PROPERTIES GENERATED TRUE )
|
|
|
|
|
|
|
|
|
|
add_dependencies( build_hardfork_hpp cat-parts )
|
|
|
|
|
|
|
|
|
|
file(GLOB HEADERS "include/graphene/chain/*.hpp")
|
2019-07-30 15:43:31 +00:00
|
|
|
file(GLOB PROTOCOL_HEADERS "include/graphene/chain/protocol/*.hpp")
|
2017-05-25 09:13:59 +00:00
|
|
|
|
|
|
|
|
if( GRAPHENE_DISABLE_UNITY_BUILD )
|
|
|
|
|
set( GRAPHENE_DB_FILES
|
|
|
|
|
db_balance.cpp
|
2019-07-30 15:43:31 +00:00
|
|
|
db_bet.cpp
|
2017-05-25 09:13:59 +00:00
|
|
|
db_block.cpp
|
|
|
|
|
db_debug.cpp
|
|
|
|
|
db_getter.cpp
|
|
|
|
|
db_init.cpp
|
|
|
|
|
db_maint.cpp
|
|
|
|
|
db_management.cpp
|
|
|
|
|
db_market.cpp
|
2020-01-13 13:58:43 +00:00
|
|
|
db_sidechain.cpp
|
2017-05-25 09:13:59 +00:00
|
|
|
db_update.cpp
|
|
|
|
|
db_witness_schedule.cpp
|
|
|
|
|
)
|
|
|
|
|
message( STATUS "Graphene database unity build disabled" )
|
|
|
|
|
else( GRAPHENE_DISABLE_UNITY_BUILD )
|
|
|
|
|
set( GRAPHENE_DB_FILES
|
|
|
|
|
database.cpp )
|
|
|
|
|
message( STATUS "Graphene database unity build enabled" )
|
|
|
|
|
endif( GRAPHENE_DISABLE_UNITY_BUILD )
|
|
|
|
|
|
|
|
|
|
## SORT .cpp by most likely to change / break compile
|
|
|
|
|
add_library( graphene_chain
|
|
|
|
|
|
|
|
|
|
# As database takes the longest to compile, start it first
|
|
|
|
|
${GRAPHENE_DB_FILES}
|
|
|
|
|
fork_database.cpp
|
|
|
|
|
|
|
|
|
|
protocol/types.cpp
|
|
|
|
|
protocol/address.cpp
|
|
|
|
|
protocol/authority.cpp
|
|
|
|
|
protocol/asset.cpp
|
|
|
|
|
protocol/assert.cpp
|
|
|
|
|
protocol/account.cpp
|
|
|
|
|
protocol/transfer.cpp
|
|
|
|
|
protocol/committee_member.cpp
|
|
|
|
|
protocol/witness.cpp
|
|
|
|
|
protocol/market.cpp
|
|
|
|
|
protocol/proposal.cpp
|
|
|
|
|
protocol/withdraw_permission.cpp
|
|
|
|
|
protocol/asset_ops.cpp
|
2017-11-13 07:14:07 +00:00
|
|
|
protocol/lottery_ops.cpp
|
2017-05-25 09:13:59 +00:00
|
|
|
protocol/memo.cpp
|
|
|
|
|
protocol/worker.cpp
|
|
|
|
|
protocol/custom.cpp
|
|
|
|
|
protocol/operations.cpp
|
|
|
|
|
protocol/transaction.cpp
|
|
|
|
|
protocol/block.cpp
|
|
|
|
|
protocol/fee_schedule.cpp
|
|
|
|
|
protocol/confidential.cpp
|
|
|
|
|
protocol/vote.cpp
|
|
|
|
|
protocol/tournament.cpp
|
2020-03-27 17:46:30 +00:00
|
|
|
protocol/small_ops.cpp
|
2017-05-25 09:13:59 +00:00
|
|
|
|
|
|
|
|
genesis_state.cpp
|
|
|
|
|
get_config.cpp
|
|
|
|
|
|
|
|
|
|
pts_address.cpp
|
|
|
|
|
|
|
|
|
|
evaluator.cpp
|
|
|
|
|
balance_evaluator.cpp
|
|
|
|
|
account_evaluator.cpp
|
|
|
|
|
assert_evaluator.cpp
|
|
|
|
|
witness_evaluator.cpp
|
|
|
|
|
committee_member_evaluator.cpp
|
|
|
|
|
asset_evaluator.cpp
|
2017-11-13 07:14:07 +00:00
|
|
|
lottery_evaluator.cpp
|
2017-05-25 09:13:59 +00:00
|
|
|
transfer_evaluator.cpp
|
|
|
|
|
proposal_evaluator.cpp
|
|
|
|
|
market_evaluator.cpp
|
|
|
|
|
vesting_balance_evaluator.cpp
|
|
|
|
|
tournament_evaluator.cpp
|
|
|
|
|
tournament_object.cpp
|
|
|
|
|
match_object.cpp
|
|
|
|
|
game_object.cpp
|
|
|
|
|
withdraw_permission_evaluator.cpp
|
|
|
|
|
worker_evaluator.cpp
|
|
|
|
|
confidential_evaluator.cpp
|
|
|
|
|
special_authority.cpp
|
|
|
|
|
buyback.cpp
|
|
|
|
|
|
|
|
|
|
account_object.cpp
|
|
|
|
|
asset_object.cpp
|
|
|
|
|
fba_object.cpp
|
|
|
|
|
proposal_object.cpp
|
|
|
|
|
vesting_balance_object.cpp
|
2020-03-27 17:46:30 +00:00
|
|
|
small_objects.cpp
|
2017-05-25 09:13:59 +00:00
|
|
|
|
|
|
|
|
block_database.cpp
|
|
|
|
|
|
|
|
|
|
is_authorized_asset.cpp
|
|
|
|
|
|
2019-07-30 15:43:31 +00:00
|
|
|
protocol/sport.cpp
|
|
|
|
|
sport_evaluator.cpp
|
|
|
|
|
protocol/event_group.cpp
|
|
|
|
|
event_group_evaluator.cpp
|
|
|
|
|
event_group_object.cpp
|
|
|
|
|
protocol/event.cpp
|
|
|
|
|
event_evaluator.cpp
|
|
|
|
|
event_object.cpp
|
|
|
|
|
protocol/betting_market.cpp
|
|
|
|
|
betting_market_evaluator.cpp
|
|
|
|
|
betting_market_object.cpp
|
|
|
|
|
betting_market_group_object.cpp
|
|
|
|
|
|
|
|
|
|
affiliate_payout.cpp
|
|
|
|
|
|
2019-10-09 20:24:36 +00:00
|
|
|
son_evaluator.cpp
|
2019-10-17 14:46:48 +00:00
|
|
|
son_object.cpp
|
2019-10-09 20:24:36 +00:00
|
|
|
|
2020-02-04 18:31:45 +00:00
|
|
|
son_wallet_evaluator.cpp
|
[SON-260] Sidechain Token withdrawal (#286)
* Extend GPO.active_sons to contain votes and all public keys
* Introduce son_wallet_object
* son_wallet_object operations
* son_wallet_object operations
* son_wallet_object operations completed, basic tests added
* Create son_wallet_object on new set of SONs, to initiate primary wallet recreation
* son_wallet_object API and cli wallet commands
* Send RPC command to bitcoin node to recreate multisig wallet
* Send RPC command to bitcoin node to recreate multisig wallet
* Send RPC command to bitcoin node to recreate multisig wallet
* Wallet recreation by scheduled SON only, some cosmetic refactoring
* Wallet recreation by scheduled SON only, some cosmetic refactoring
* Updating wallet info through operation instead through database.modify() for persistance
* SON wallet transfer object and operations, for tracking assets deposit/withdrawal
* Update libraries/chain/include/graphene/chain/protocol/son_wallet.hpp
Co-Authored-By: gladcow <jahr@yandex.ru>
* Update libraries/chain/include/graphene/chain/protocol/son_wallet.hpp
Co-Authored-By: gladcow <jahr@yandex.ru>
* Fix #include <graphene/chain/son_wallet_transfer_object.hpp>
* SON wallet transfer object and operations, for tracking assets deposit/withdrawal
* SON wallet transfer object and operations, for tracking assets deposit/withdrawal
* Refactor primary wallet recreation
* Refactor primary wallet recreation
* PW recreation refactoring, prevent duplicated recreations, update wallet address through proposal
* PW recreation refactoring, prevent duplicated recreations, update wallet address through proposal
* Quickfix for checking payer in evaluator
* Quickfix for checking payer in evaluator
* Fix failing son_wallet_tests
- Check for son_btc_account is temporarely disabled
* Remove redundant file
* Squashed commit of the following:
commit a688bb93ed4e16232a907aa8c76e240c83c771bf
Author: obucinac <obucinac@users.noreply.github.com>
Date: Tue Feb 4 19:31:45 2020 +0100
son_wallet_object operations and multisig wallet recreation by RPC (#263)
* Extend GPO.active_sons to contain votes and all public keys
* Introduce son_wallet_object
* son_wallet_object operations
* Create son_wallet_object on new set of SONs, to initiate primary wallet recreation
* son_wallet_object API and cli wallet commands
* Send RPC command to bitcoin node to recreate multisig wallet
* Updating wallet info through operation instead through database.modify() for persistance
* Update libraries/chain/include/graphene/chain/protocol/son_wallet.hpp
* Update libraries/chain/include/graphene/chain/protocol/son_wallet.hpp
* Fix #include <graphene/chain/son_wallet_transfer_object.hpp>
* Refactor primary wallet recreation
* PW recreation refactoring, prevent duplicated recreations, update wallet address through proposal
* Quickfix for checking payer in evaluator
* Fix failing son_wallet_tests
- Check for son_btc_account is temporarely disabled
* Remove redundant file
Co-authored-by: gladcow <jahr@yandex.ru>
commit 6e61d6b055eb276757e426245a3a7c23a61b3854
Author: satyakoneru <satyakoneru.iiith@gmail.com>
Date: Tue Feb 4 00:14:39 2020 +1100
SON233 - Provide correct downtime metrics to user (#278)
* Remove duplicated item in CMakeLists.txt
* Issue tokens to the user who deposited Bitcoin, WIP...
* Add son_wallet_transfer_process_operation
* Issue tokens to the user who deposited Bitcoin, WIP...
* Support multiple SON nodes per software instance
* Add is_active_son guards for sidechain events processing
* Add is_active_son guards, fix sending proposals and aprovals
* Managing GRAPHENE_SON_ACCOUNT and issuing assets on Bitcoin deposit
* Fix bad param
* Fix aprovals on already approved or invalid proposals
* Move transfer inside son_wallet_transfer_process_operation
* Fix merging issue
* Add cmake command line option SUPPORT_MULTIPLE_SONS
* Skeleton of sidechain_net_handler_peerplays
* Skeleton of Peerplays network listener
* Temoprary disable account history tests for tracking accounts
* Full Peerplays listener, use GRAPHENE_SON_ACCOUNT instead son_btc_account
* Renaming son_wallet_transfer* to son_wallet_deposit*, introducing son_wallet_withdrawal*
* Extend sidechain_address_object to contain withdrawal addresses
- Withdrawal address is the address where system will send sidechain currencies
* Rename son_wallet_withdrawal* to son_wallet_withdraw*
* Some refactoring
* Withdrawal refactoring
* Withdrawal refactoring
Co-authored-by: gladcow <jahr@yandex.ru>
2020-02-23 16:33:43 +00:00
|
|
|
son_wallet_deposit_evaluator.cpp
|
|
|
|
|
son_wallet_withdraw_evaluator.cpp
|
2020-02-04 18:31:45 +00:00
|
|
|
|
2019-12-18 18:30:38 +00:00
|
|
|
sidechain_address_evaluator.cpp
|
SON261 - Bitcoin deposit, withdrawal, PW transfer (#287)
* Extend GPO.active_sons to contain votes and all public keys
* Introduce son_wallet_object
* son_wallet_object operations
* son_wallet_object operations
* son_wallet_object operations completed, basic tests added
* Create son_wallet_object on new set of SONs, to initiate primary wallet recreation
* son_wallet_object API and cli wallet commands
* Send RPC command to bitcoin node to recreate multisig wallet
* Send RPC command to bitcoin node to recreate multisig wallet
* Send RPC command to bitcoin node to recreate multisig wallet
* Wallet recreation by scheduled SON only, some cosmetic refactoring
* Wallet recreation by scheduled SON only, some cosmetic refactoring
* Updating wallet info through operation instead through database.modify() for persistance
* SON wallet transfer object and operations, for tracking assets deposit/withdrawal
* Update libraries/chain/include/graphene/chain/protocol/son_wallet.hpp
Co-Authored-By: gladcow <jahr@yandex.ru>
* Update libraries/chain/include/graphene/chain/protocol/son_wallet.hpp
Co-Authored-By: gladcow <jahr@yandex.ru>
* Fix #include <graphene/chain/son_wallet_transfer_object.hpp>
* SON wallet transfer object and operations, for tracking assets deposit/withdrawal
* SON wallet transfer object and operations, for tracking assets deposit/withdrawal
* Refactor primary wallet recreation
* Refactor primary wallet recreation
* PW recreation refactoring, prevent duplicated recreations, update wallet address through proposal
* PW recreation refactoring, prevent duplicated recreations, update wallet address through proposal
* Quickfix for checking payer in evaluator
* Quickfix for checking payer in evaluator
* Fix failing son_wallet_tests
- Check for son_btc_account is temporarely disabled
* Remove redundant file
* Squashed commit of the following:
commit a688bb93ed4e16232a907aa8c76e240c83c771bf
Author: obucinac <obucinac@users.noreply.github.com>
Date: Tue Feb 4 19:31:45 2020 +0100
son_wallet_object operations and multisig wallet recreation by RPC (#263)
* Extend GPO.active_sons to contain votes and all public keys
* Introduce son_wallet_object
* son_wallet_object operations
* Create son_wallet_object on new set of SONs, to initiate primary wallet recreation
* son_wallet_object API and cli wallet commands
* Send RPC command to bitcoin node to recreate multisig wallet
* Updating wallet info through operation instead through database.modify() for persistance
* Update libraries/chain/include/graphene/chain/protocol/son_wallet.hpp
* Update libraries/chain/include/graphene/chain/protocol/son_wallet.hpp
* Fix #include <graphene/chain/son_wallet_transfer_object.hpp>
* Refactor primary wallet recreation
* PW recreation refactoring, prevent duplicated recreations, update wallet address through proposal
* Quickfix for checking payer in evaluator
* Fix failing son_wallet_tests
- Check for son_btc_account is temporarely disabled
* Remove redundant file
Co-authored-by: gladcow <jahr@yandex.ru>
commit 6e61d6b055eb276757e426245a3a7c23a61b3854
Author: satyakoneru <satyakoneru.iiith@gmail.com>
Date: Tue Feb 4 00:14:39 2020 +1100
SON233 - Provide correct downtime metrics to user (#278)
* Remove duplicated item in CMakeLists.txt
* Issue tokens to the user who deposited Bitcoin, WIP...
* Add son_wallet_transfer_process_operation
* Issue tokens to the user who deposited Bitcoin, WIP...
* Support multiple SON nodes per software instance
* Add is_active_son guards for sidechain events processing
* Add is_active_son guards, fix sending proposals and aprovals
* Managing GRAPHENE_SON_ACCOUNT and issuing assets on Bitcoin deposit
* Fix bad param
* Fix aprovals on already approved or invalid proposals
* Move transfer inside son_wallet_transfer_process_operation
* Fix merging issue
* Add cmake command line option SUPPORT_MULTIPLE_SONS
* Skeleton of sidechain_net_handler_peerplays
* Skeleton of Peerplays network listener
* SON261 - Deposit transfer ( user address -> PW ) and Withdrawal transfer ( PW -> user address ) for m-of-n multisig
* Temoprary disable account history tests for tracking accounts
* Full Peerplays listener, use GRAPHENE_SON_ACCOUNT instead son_btc_account
* Renaming son_wallet_transfer* to son_wallet_deposit*, introducing son_wallet_withdrawal*
* Extend sidechain_address_object to contain withdrawal addresses
- Withdrawal address is the address where system will send sidechain currencies
* Rename son_wallet_withdrawal* to son_wallet_withdraw*
* Some refactoring
* SON261 - Withdrawal transfer ( PW -> user address ), addition of bitcoin public private key to config.ini for multiple sons mode
* Withdrawal refactoring
* Withdrawal refactoring
* SON261 - Fix prepare_tx
* SON261 - Add PW->PW Transfer and Code reorg
* Fix file permissions
Co-authored-by: obucinac <obucinac@users.noreply.github.com>
Co-authored-by: gladcow <jahr@yandex.ru>
2020-02-24 02:04:54 +00:00
|
|
|
sidechain_transaction_evaluator.cpp
|
2019-12-18 18:30:38 +00:00
|
|
|
|
2017-05-25 09:13:59 +00:00
|
|
|
${HEADERS}
|
2019-07-30 15:43:31 +00:00
|
|
|
${PROTOCOL_HEADERS}
|
2017-05-25 09:13:59 +00:00
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/include/graphene/chain/hardfork.hpp"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_dependencies( graphene_chain build_hardfork_hpp )
|
2020-03-25 10:44:22 +00:00
|
|
|
target_link_libraries( graphene_chain fc graphene_db )
|
2017-05-25 09:13:59 +00:00
|
|
|
target_include_directories( graphene_chain
|
|
|
|
|
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" "${CMAKE_CURRENT_BINARY_DIR}/include" )
|
|
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
|
set_source_files_properties( db_init.cpp db_block.cpp database.cpp block_database.cpp PROPERTIES COMPILE_FLAGS "/bigobj" )
|
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
|
|
INSTALL( TARGETS
|
|
|
|
|
graphene_chain
|
|
|
|
|
|
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
|
)
|
2019-07-30 15:43:31 +00:00
|
|
|
INSTALL( FILES ${HEADERS} DESTINATION "include/graphene/chain" )
|
|
|
|
|
INSTALL( FILES ${PROTOCOL_HEADERS} DESTINATION "include/graphene/chain/protocol" )
|