|
|
|
@ -427,9 +427,9 @@ namespace cryptonote
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
//-----------------------------------------------------------------------------------------------
|
|
|
|
|
bool core::get_transactions(const std::vector<crypto::hash>& txs_ids, std::vector<cryptonote::blobdata>& txs, std::vector<crypto::hash>& missed_txs) const
|
|
|
|
|
bool core::get_transactions(const std::vector<crypto::hash>& txs_ids, std::vector<cryptonote::blobdata>& txs, std::vector<crypto::hash>& missed_txs, bool pruned) const
|
|
|
|
|
{
|
|
|
|
|
return m_blockchain_storage.get_transactions_blobs(txs_ids, txs, missed_txs);
|
|
|
|
|
return m_blockchain_storage.get_transactions_blobs(txs_ids, txs, missed_txs, pruned);
|
|
|
|
|
}
|
|
|
|
|
//-----------------------------------------------------------------------------------------------
|
|
|
|
|
bool core::get_split_transactions_blobs(const std::vector<crypto::hash>& txs_ids, std::vector<std::tuple<crypto::hash, cryptonote::blobdata, crypto::hash, cryptonote::blobdata>>& txs, std::vector<crypto::hash>& missed_txs) const
|
|
|
|
@ -443,9 +443,9 @@ namespace cryptonote
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
//-----------------------------------------------------------------------------------------------
|
|
|
|
|
bool core::get_transactions(const std::vector<crypto::hash>& txs_ids, std::vector<transaction>& txs, std::vector<crypto::hash>& missed_txs) const
|
|
|
|
|
bool core::get_transactions(const std::vector<crypto::hash>& txs_ids, std::vector<transaction>& txs, std::vector<crypto::hash>& missed_txs, bool pruned) const
|
|
|
|
|
{
|
|
|
|
|
return m_blockchain_storage.get_transactions(txs_ids, txs, missed_txs);
|
|
|
|
|
return m_blockchain_storage.get_transactions(txs_ids, txs, missed_txs, pruned);
|
|
|
|
|
}
|
|
|
|
|
//-----------------------------------------------------------------------------------------------
|
|
|
|
|
bool core::get_alternative_blocks(std::vector<block>& blocks) const
|
|
|
|
@ -1241,7 +1241,7 @@ namespace cryptonote
|
|
|
|
|
std::vector<transaction> txs;
|
|
|
|
|
std::vector<crypto::hash> missed_txs;
|
|
|
|
|
uint64_t coinbase_amount = get_outs_money_amount(b.miner_tx);
|
|
|
|
|
this->get_transactions(b.tx_hashes, txs, missed_txs);
|
|
|
|
|
this->get_transactions(b.tx_hashes, txs, missed_txs, true);
|
|
|
|
|
uint64_t tx_fee_amount = 0;
|
|
|
|
|
for(const auto& tx: txs)
|
|
|
|
|
{
|
|
|
|
|