Skip to content

Commit

Permalink
avoid colliding names
Browse files Browse the repository at this point in the history
  • Loading branch information
scravy committed Oct 10, 2018
1 parent 7b87be8 commit d0d595c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/proposer/transactionpicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ class BlockAssemblerAdapter final : public TransactionPicker {
};
};

std::unique_ptr<TransactionPicker> TransactionPicker::BlockAssemblerAdapter(
std::unique_ptr<TransactionPicker> TransactionPicker::MakeBlockAssemblerAdapter(
const CChainParams &chainParams) {

return std::unique_ptr<TransactionPicker>(
new class BlockAssemblerAdapter(chainParams));
new BlockAssemblerAdapter(chainParams));
}

} // namespace proposer
2 changes: 1 addition & 1 deletion src/proposer/transactionpicker.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class TransactionPicker {
virtual ~TransactionPicker() = default;

//! \brief Factory method for creating a BlockAssemblerAdapter
static std::unique_ptr<TransactionPicker> BlockAssemblerAdapter(
static std::unique_ptr<TransactionPicker> MakeBlockAssemblerAdapter(
const ::CChainParams &);
};

Expand Down
2 changes: 1 addition & 1 deletion src/test/proposer/blockassembleradapter_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ BOOST_AUTO_TEST_CASE(block_assembler_adapter_test) {
// transactions will have to be mocked.

std::unique_ptr<proposer::TransactionPicker> blockAssemblerAdapter =
proposer::TransactionPicker::BlockAssemblerAdapter(::Params());
proposer::TransactionPicker::MakeBlockAssemblerAdapter(::Params());

proposer::TransactionPicker::PickTransactionsParameters params;

Expand Down

0 comments on commit d0d595c

Please sign in to comment.