diff --git a/libraries/wallet/include/graphene/wallet/wallet.hpp b/libraries/wallet/include/graphene/wallet/wallet.hpp index 25895a15..952b1b33 100644 --- a/libraries/wallet/include/graphene/wallet/wallet.hpp +++ b/libraries/wallet/include/graphene/wallet/wallet.hpp @@ -230,6 +230,7 @@ struct signed_block_with_info : public signed_block block_id_type block_id; public_key_type signing_key; + vector< transaction_id_type > transaction_ids; }; struct vesting_balance_object_with_info : public vesting_balance_object @@ -1449,7 +1450,7 @@ FC_REFLECT( graphene::wallet::worker_vote_delta, ) FC_REFLECT_DERIVED( graphene::wallet::signed_block_with_info, (graphene::chain::signed_block), - (block_id)(signing_key) ) + (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) ) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index 8880a6fc..a568aeaf 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -3937,6 +3937,9 @@ signed_block_with_info::signed_block_with_info( const signed_block& block ) { block_id = id(); signing_key = signee(); + transaction_ids.reserve( transactions.size() ); + for( const processed_transaction& tx : transactions ) + transaction_ids.push_back( tx.id() ); } vesting_balance_object_with_info::vesting_balance_object_with_info( const vesting_balance_object& vbo, fc::time_point_sec now )