Skip to content

Commit

Permalink
Undo superfluous change
Browse files Browse the repository at this point in the history
  • Loading branch information
pmconrad authored and gladcow committed Nov 29, 2019
1 parent 8541192 commit 25458c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions libraries/wallet/include/graphene/wallet/wallet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,12 @@ struct worker_vote_delta
flat_set<worker_id_type> vote_abstain;
};

struct signed_block_with_info
struct signed_block_with_info : public signed_block
{
signed_block_with_info();
signed_block_with_info( const signed_block& block );
signed_block_with_info( const signed_block_with_info& block ) = default;

signed_block block;
block_id_type block_id;
public_key_type signing_key;
vector< transaction_id_type > transaction_ids;
Expand Down Expand Up @@ -1979,7 +1978,8 @@ FC_REFLECT( graphene::wallet::worker_vote_delta,
(vote_abstain)
)

FC_REFLECT( graphene::wallet::signed_block_with_info, (block_id)(signing_key)(transaction_ids) )
FC_REFLECT_DERIVED( graphene::wallet::signed_block_with_info, (graphene::chain::signed_block),
(block_id)(signing_key)(transaction_ids) )

FC_REFLECT_DERIVED( graphene::wallet::vesting_balance_object_with_info, (graphene::chain::vesting_balance_object),
(allowed_withdraw)(allowed_withdraw_time) )
Expand Down
12 changes: 6 additions & 6 deletions libraries/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6191,13 +6191,13 @@ std::vector<matched_bet_object> wallet_api::get_all_matched_bets_for_bettor(acco
}

// default ctor necessary for FC_REFLECT
signed_block_with_info::signed_block_with_info( const signed_block& _block )
: block( _block )
signed_block_with_info::signed_block_with_info( const signed_block& block )
: signed_block( block )
{
block_id = _block.id();
signing_key = _block.signee();
transaction_ids.reserve( _block.transactions.size() );
for( const processed_transaction& tx : _block.transactions )
block_id = id();
signing_key = signee();
transaction_ids.reserve( transactions.size() );
for( const processed_transaction& tx : transactions )
transaction_ids.push_back( tx.id() );
}

Expand Down

0 comments on commit 25458c2

Please sign in to comment.