mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-20 00:28:41 +02:00
compiling
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user