Skip to content

Commit

Permalink
Apply Unit-e style guidelines
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
  • Loading branch information
Andres Correa Casablanca committed Jan 17, 2019
1 parent 94f630c commit fc96297
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/primitives/txid.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@

#include <uint256.h>

/**
* A TxId is the identifier of a transaction. Currently identical to TxHash but
* differentiated for type safety.
*/
//! A TxId is the identifier of a transaction. Currently identical to TxHash but
//! differentiated for type safety.
struct TxId : public uint256 {
explicit TxId() : uint256() {}
explicit TxId(const uint256 &b) : uint256(b) {}
Expand Down
4 changes: 2 additions & 2 deletions src/test/uint256_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ BOOST_AUTO_TEST_CASE( basics ) // constructors, equality, inequality
BOOST_AUTO_TEST_CASE( comparison ) // <= >= < >
{
uint256 LastL;
for (int i = 0; i < 256; i++) {
for (int i = 0; i < 256; ++i) {
uint256 TmpL;
*(TmpL.begin() + (i >> 3)) |= 1 << (i & 7);
BOOST_CHECK( LastL < TmpL );
Expand All @@ -144,7 +144,7 @@ BOOST_AUTO_TEST_CASE( comparison ) // <= >= < >
BOOST_CHECK( R2L < MaxL );

uint160 LastS;
for (int i = 0; i < 160; i++) {
for (int i = 0; i < 160; ++i) {
uint160 TmpS;
*(TmpS.begin() + (i >> 3)) |= 1 << (i & 7);
BOOST_CHECK( LastS < TmpS );
Expand Down

0 comments on commit fc96297

Please sign in to comment.