Skip to content

Commit

Permalink
Finish removing std::stringstream from raw_block_api.cpp #452
Browse files Browse the repository at this point in the history
  • Loading branch information
theoreticalbts committed Sep 21, 2016
1 parent 9d2a6d5 commit ac54779
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/plugins/raw_block/raw_block_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ get_raw_block_result raw_block_api::get_raw_block( get_raw_block_args args )
{
return result;
}
std::stringstream ss;
auto rest = fc::raw::pack( *block );
result.raw_block = fc::base64_encode( std::string( &rest[0], &rest[0] + rest.size()) ); //ss.str() );
std::vector<char> serialized_block = fc::raw::pack( *block );
result.raw_block = fc::base64_encode( std::string(
&serialized_block[0], &serialized_block[0] + serialized_block.size()) );
result.block_id = block->id();
result.previous = block->previous;
result.timestamp = block->timestamp;
Expand Down

0 comments on commit ac54779

Please sign in to comment.