Skip to content

Commit

Permalink
Merge bitcoin#11408: Trivial: Fix parameter name typo in ErasePurpose…
Browse files Browse the repository at this point in the history
… walletdb method

603efe9 Fix parameter name typo in ErasePurpose walletdb method. (Pierre Rochard)

Pull request description:

  The header file has the correct method signature and the one usage in CWallet::DelAddressBook is correctly passing in EncodeDestination(address)

Tree-SHA512: ee0808a74111fd23a1c47ba5ab51de151fdd33a01d92895671e562ac184cbcb33180a3ff26c22e5717595592097b9fa33deca9878d89ce8d34687f09cfadfcf0
  • Loading branch information
MarcoFalke committed Sep 27, 2017
2 parents 2505c5c + 603efe9 commit 69c7ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wallet/walletdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ bool CWalletDB::WritePurpose(const std::string& strAddress, const std::string& s
return WriteIC(std::make_pair(std::string("purpose"), strAddress), strPurpose);
}

bool CWalletDB::ErasePurpose(const std::string& strPurpose)
bool CWalletDB::ErasePurpose(const std::string& strAddress)
{
return EraseIC(std::make_pair(std::string("purpose"), strPurpose));
return EraseIC(std::make_pair(std::string("purpose"), strAddress));
}

bool CWalletDB::WriteTx(const CWalletTx& wtx)
Expand Down

0 comments on commit 69c7ece

Please sign in to comment.