Skip to content

Commit

Permalink
Fixed key check to support assets in HD wallets. Format cleanup in wa…
Browse files Browse the repository at this point in the history
…lletdb (no code changes). (#387)
  • Loading branch information
CodeIsTheKey authored Aug 2, 2024
1 parent ad2be27 commit f877c16
Show file tree
Hide file tree
Showing 2 changed files with 372 additions and 431 deletions.
6 changes: 3 additions & 3 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4796,7 +4796,7 @@ bool CWallet::CreateTransaction(const std::vector <CRecipient> &vecSend, CTransa
std::string m = atx.MakeSignString(passetsCache.get());
// lets prove we own the root asset
CKey key;
if (!CCryptoKeyStore::GetKey(assetData.ownerAddress, key)) {
if (!GetKey(assetData.ownerAddress, key)) {
strFailReason = _("Root asset key not in wallet");
return false;
}
Expand All @@ -4820,7 +4820,7 @@ bool CWallet::CreateTransaction(const std::vector <CRecipient> &vecSend, CTransa
std::string m = mtx.MakeSignString(passetsCache.get());
// lets prove we own the asset
CKey key;
if (!CCryptoKeyStore::GetKey(assetData.ownerAddress, key)) {
if (!GetKey(assetData.ownerAddress, key)) {
strFailReason = _("Asset owner key not in wallet");
return false;
}
Expand All @@ -4843,7 +4843,7 @@ bool CWallet::CreateTransaction(const std::vector <CRecipient> &vecSend, CTransa
std::string m = uptx.MakeSignString(passetsCache.get());
// lets prove we own the asset
CKey key;
if (!CCryptoKeyStore::GetKey(assetData.ownerAddress, key)) {
if (!GetKey(assetData.ownerAddress, key)) {
strFailReason = _("Asset owner key not in wallet");
return false;
}
Expand Down
Loading

0 comments on commit f877c16

Please sign in to comment.