Skip to content

Commit

Permalink
Undo superfluous change
Browse files Browse the repository at this point in the history
  • Loading branch information
pmconrad committed Jun 4, 2019
1 parent 90efe68 commit c657635
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,12 +229,11 @@ 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( 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 @@ -1800,7 +1799,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( 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 @@ -5039,13 +5039,13 @@ order_book wallet_api::get_order_book( const string& base, const string& quote,
return( my->_remote_db->get_order_book( base, quote, limit ) );
}

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 c657635

Please sign in to comment.