Skip to content

Commit 919322c

Browse files
Jakub FornadelJakub Fornadel
authored andcommitted
fix formatting
1 parent 9207e42 commit 919322c

4 files changed

Lines changed: 6 additions & 12 deletions

File tree

libraries/common/include/common/encoding_rlp.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ void rlp(RLPEncoderRef encoding, std::pair<T1, T2> const& target) {
6363
}
6464

6565
template <typename Sequence>
66-
auto rlp(RLPEncoderRef encoding, Sequence const& target)
67-
-> decltype(target.size(), target.begin(), target.end(), void()) {
66+
auto rlp(RLPEncoderRef encoding, Sequence const& target) -> decltype(target.size(), target.begin(), target.end(),
67+
void()) {
6868
encoding.appendList(target.size());
6969
for (auto const& v : target) {
7070
rlp(encoding, v);

libraries/core_libs/consensus/src/transaction/transaction_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ std::pair<bool, std::string> TransactionManager::insertTransaction(const std::sh
128128

129129
const auto trx_hash = trx->getHash();
130130
auto trx_copy = trx;
131-
131+
132132
if (insertValidatedTransaction(std::move(trx_copy), false) == TransactionStatus::Inserted) {
133133
return {true, ""};
134134
} else {

tests/full_node_test.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,9 +969,7 @@ TEST_F(FullNodeTest, persist_counter) {
969969
TEST_F(FullNodeTest, save_network_to_file) {
970970
auto node_cfgs = make_node_cfgs(3);
971971
// Create and destroy to create network. So next time will be loaded from file
972-
{
973-
auto nodes = launch_nodes(node_cfgs);
974-
}
972+
{ auto nodes = launch_nodes(node_cfgs); }
975973
{
976974
auto nodes = create_nodes({node_cfgs[1], node_cfgs[2]}, true /*start*/);
977975

tests/p2p_test.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,8 @@ TEST_F(P2PTest, multiple_capabilities) {
138138
};
139139

140140
// At least 1 common tarcap version - connection should be established
141-
{
142-
test_tarcaps({1}, {1});
143-
}
144-
{
145-
test_tarcaps({1, 2, 3}, {3, 4, 5});
146-
}
141+
{ test_tarcaps({1}, {1}); }
142+
{ test_tarcaps({1, 2, 3}, {3, 4, 5}); }
147143

148144
// No common tarcap version, connection should not be established
149145
{

0 commit comments

Comments
 (0)