|
|
@ -49,8 +49,12 @@ WalletTxOut MakeWalletTxOut(CWallet& wallet,
|
|
|
|
|
|
|
|
|
|
|
|
if (output.IsMWEB()) {
|
|
|
|
if (output.IsMWEB()) {
|
|
|
|
mw::Coin coin;
|
|
|
|
mw::Coin coin;
|
|
|
|
if (wallet.GetCoin(output.ToMWEB(), coin)) {
|
|
|
|
if (wallet.GetCoin(output.ToMWEB(), coin) && coin.IsMine()) {
|
|
|
|
result.address = wallet.GetMWWallet()->GetStealthAddress(coin.address_index);
|
|
|
|
StealthAddress addr;
|
|
|
|
|
|
|
|
if (wallet.GetMWWallet()->GetStealthAddress(coin, addr)) {
|
|
|
|
|
|
|
|
result.address = addr;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
result.nValue = coin.amount;
|
|
|
|
result.nValue = coin.amount;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -538,9 +542,9 @@ public:
|
|
|
|
RemoveWallet(m_wallet, false /* load_on_start */);
|
|
|
|
RemoveWallet(m_wallet, false /* load_on_start */);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bool isLegacy() override { return m_wallet->IsLegacy(); }
|
|
|
|
bool isLegacy() override { return m_wallet->IsLegacy(); }
|
|
|
|
StealthAddress getPeginAddress() override
|
|
|
|
bool getPeginAddress(StealthAddress& pegin_address) override
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return m_wallet->GetMWWallet()->GetStealthAddress(mw::PEGIN_INDEX);
|
|
|
|
return m_wallet->GetMWWallet()->GetStealthAddress(mw::PEGIN_INDEX, pegin_address);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
std::unique_ptr<Handler> handleUnload(UnloadFn fn) override
|
|
|
|
std::unique_ptr<Handler> handleUnload(UnloadFn fn) override
|
|
|
|
{
|
|
|
|
{
|
|
|
|