diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da6baf86..18012916 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,7 @@ stages: build: stage: build script: - - rm -rf .git/modules/* ./docs ./libraries/fc + - rm -rf .git/modules/docs .git/modules/libraries/fc ./docs ./libraries/fc - git submodule sync - git submodule update --init --recursive - rm -rf build diff --git a/libraries/app/database_api.cpp b/libraries/app/database_api.cpp index 9233f70b..e21cc8b1 100644 --- a/libraries/app/database_api.cpp +++ b/libraries/app/database_api.cpp @@ -2110,7 +2110,7 @@ vector database_api_impl::lookup_vote_ids( const vector& { auto itr = son_idx.find( id ); if( itr != son_idx.end() ) - result.emplace_back( variant( *itr, 1 ) ); + result.emplace_back( variant( *itr, 5 ) ); else result.emplace_back( variant() ); break; diff --git a/libraries/app/include/graphene/app/full_account.hpp b/libraries/app/include/graphene/app/full_account.hpp index 955857b7..dc83adb6 100644 --- a/libraries/app/include/graphene/app/full_account.hpp +++ b/libraries/app/include/graphene/app/full_account.hpp @@ -70,6 +70,5 @@ FC_REFLECT( graphene::app::full_account, (proposals) (assets) (withdraws) - (proposals) (pending_dividend_payments) ) diff --git a/libraries/chain/include/graphene/chain/son_object.hpp b/libraries/chain/include/graphene/chain/son_object.hpp index 3335bd8a..53072515 100644 --- a/libraries/chain/include/graphene/chain/son_object.hpp +++ b/libraries/chain/include/graphene/chain/son_object.hpp @@ -115,7 +115,17 @@ namespace graphene { namespace chain { FC_REFLECT_ENUM(graphene::chain::son_status, (inactive)(active)(request_maintenance)(in_maintenance)(deregistered) ) FC_REFLECT_DERIVED( graphene::chain::son_object, (graphene::db::object), - (son_account)(vote_id)(total_votes)(url)(deposit)(signing_key)(pay_vb)(statistics)(status)(sidechain_public_keys) ) + (son_account) + (vote_id) + (total_votes) + (url) + (deposit) + (signing_key) + (pay_vb) + (statistics) + (status) + (sidechain_public_keys) + ) FC_REFLECT_DERIVED( graphene::chain::son_statistics_object, (graphene::db::object), @@ -131,3 +141,6 @@ FC_REFLECT_DERIVED( graphene::chain::son_statistics_object, (total_sidechain_txs_reported) (sidechain_txs_reported) ) + +GRAPHENE_EXTERNAL_SERIALIZATION( extern, graphene::chain::son_object ) +GRAPHENE_EXTERNAL_SERIALIZATION( extern, graphene::chain::son_statistics_object ) diff --git a/libraries/chain/small_objects.cpp b/libraries/chain/small_objects.cpp index 6b8af3d9..24166e4e 100644 --- a/libraries/chain/small_objects.cpp +++ b/libraries/chain/small_objects.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -62,6 +63,8 @@ GRAPHENE_EXTERNAL_SERIALIZATION( /*not extern*/, graphene::chain::dynamic_global GRAPHENE_EXTERNAL_SERIALIZATION( /*not extern*/, graphene::chain::global_property_object ) GRAPHENE_EXTERNAL_SERIALIZATION( /*not extern*/, graphene::chain::operation_history_object ) GRAPHENE_EXTERNAL_SERIALIZATION( /*not extern*/, graphene::chain::account_transaction_history_object ) +GRAPHENE_EXTERNAL_SERIALIZATION( /*not extern*/, graphene::chain::son_object ) +GRAPHENE_EXTERNAL_SERIALIZATION( /*not extern*/, graphene::chain::son_statistics_object ) GRAPHENE_EXTERNAL_SERIALIZATION( /*not extern*/, graphene::chain::special_authority_object ) GRAPHENE_EXTERNAL_SERIALIZATION( /*not extern*/, graphene::chain::transaction_object ) GRAPHENE_EXTERNAL_SERIALIZATION( /*not extern*/, graphene::chain::withdraw_permission_object )