Skip to content

Commit

Permalink
#79: Syntax cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sgerbino committed Dec 14, 2022
1 parent 98c4b99 commit 79d1f21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion programs/koinos_mempool/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ int main( int argc, char** argv )
p.has_block_id() ? util::converter::to< crypto::multihash >( p.block_id() ) : std::optional< crypto::multihash >{}
);
auto pending_trxs = resp.mutable_get_pending_transactions();
for( const auto& trx : transactions )
for ( const auto& trx : transactions )
{
pending_trxs->add_pending_transactions()->CopyFrom( trx );
}
Expand Down
4 changes: 2 additions & 2 deletions tests/tests/mempool_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ BOOST_AUTO_TEST_CASE( pending_transaction_pagination )
chain::value_type nonce_value;
uint64_t rc_used = 0;

for( uint64_t i = 0; i < mempool::constants::max_request_limit + 1; i++ )
for ( uint64_t i = 0; i < mempool::constants::max_request_limit + 1; i++ )
{
protocol::transaction trx;
nonce_value.set_uint64_value( i + 1 );
Expand All @@ -149,7 +149,7 @@ BOOST_AUTO_TEST_CASE( pending_transaction_pagination )

auto pending_trxs = mempool.get_pending_transactions( mempool::constants::max_request_limit );
BOOST_REQUIRE( pending_trxs.size() == mempool::constants::max_request_limit );
for( uint64_t i = 0; i < pending_trxs.size(); i++ )
for ( uint64_t i = 0; i < pending_trxs.size(); i++ )
{
BOOST_CHECK_EQUAL( pending_trxs[i].transaction().header().rc_limit(), 10 * i );
}
Expand Down

0 comments on commit 79d1f21

Please sign in to comment.