compiling

This commit is contained in:
woodser
2019-06-17 15:10:25 -04:00
parent e831338138
commit 911d3cb4d4
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ namespace monero {
}
if (!txs.empty()) {
for (const shared_ptr<MoneroTx>& tx : txs) {
tx->block = self;
tx->block = static_pointer_cast<MoneroBlock>(self);
}
}
+3 -3
View File
@@ -107,7 +107,7 @@ namespace monero {
(*tx->block)->txs = txs;
(*tx->block)->height = *aTx->getHeight();
}
(*aTx->block)->merge(*tx->block);
(*aTx->block)->merge(*aTx->block, *tx->block);
} else {
aTx->merge(aTx, tx);
}
@@ -116,7 +116,7 @@ namespace monero {
// merge common block of different txs
if (tx->getHeight() != boost::none && *tx->getHeight() == *aTx->getHeight()) {
(*aTx->block)->merge(*tx->block);
(*aTx->block)->merge(*aTx->block, *tx->block);
//if (aTx.getIsConfirmed()) assertTrue(aTx.getBlock().getTxs().contains(aTx));
}
}
@@ -798,7 +798,7 @@ namespace monero {
// construct transfer
shared_ptr<MoneroIncomingTransfer> incomingTransferBase = shared_ptr<MoneroIncomingTransfer>(new MoneroIncomingTransfer());
MoneroIncomingTransfer* incomingTransfer = static_cast<MoneroIncomingTransfer*>(&*incomingTransferBase);
incomingTransfer->tx = txBase;
incomingTransfer->tx = static_pointer_cast<MoneroTxWallet>(txBase);
tx->incomingTransfers.push_back(incomingTransferBase);
incomingTransfer->amount = pd.m_amount;
incomingTransfer->accountIndex = pd.m_subaddr_index.major;
+1 -1
View File
@@ -89,7 +89,7 @@ namespace monero {
* Models a base transfer of funds to or from the wallet.
*/
struct MoneroTransfer : SerializableStruct {
shared_ptr<MoneroTx> tx; // TODO *** switch to MoneroTxWallet ***
shared_ptr<MoneroTxWallet> tx;
boost::optional<bool> isIncoming;
boost::optional<uint64_t> amount;
boost::optional<uint32_t> accountIndex;