mirror of
https://github.com/monero-project/monero.git
synced 2025-07-24 01:50:47 -04:00
Merge pull request #1263
d61bd81
add lightweight block propagation ("fluffy blocks") (Dion Ahmetaj)
This commit is contained in:
commit
5f568533aa
11 changed files with 492 additions and 11 deletions
|
@ -915,6 +915,11 @@ namespace cryptonote
|
|||
m_mempool.get_transactions(txs);
|
||||
return true;
|
||||
}
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
bool core::get_pool_transaction(const crypto::hash &id, transaction& tx) const
|
||||
{
|
||||
return m_mempool.get_transaction(id, tx);
|
||||
}
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
bool core::get_pool_transactions_and_spent_keys_info(std::vector<tx_info>& tx_infos, std::vector<spent_key_image_info>& key_image_infos) const
|
||||
{
|
||||
|
|
|
@ -379,6 +379,13 @@ namespace cryptonote
|
|||
* @note see tx_memory_pool::get_transactions
|
||||
*/
|
||||
bool get_pool_transactions(std::list<transaction>& txs) const;
|
||||
|
||||
/**
|
||||
* @copydoc tx_memory_pool::get_transaction
|
||||
*
|
||||
* @note see tx_memory_pool::get_transaction
|
||||
*/
|
||||
bool get_pool_transaction(const crypto::hash& id, transaction& tx) const;
|
||||
|
||||
/**
|
||||
* @copydoc tx_memory_pool::get_pool_transactions_and_spent_keys_info
|
||||
|
@ -611,6 +618,13 @@ namespace cryptonote
|
|||
* @return the number of blocks to sync in one go
|
||||
*/
|
||||
std::pair<uint64_t, uint64_t> get_coinbase_tx_sum(const uint64_t start_offset, const size_t count);
|
||||
|
||||
/**
|
||||
* @brief get whether we're on testnet or not
|
||||
*
|
||||
* @return are we on testnet?
|
||||
*/
|
||||
bool get_testnet() const { return m_testnet; };
|
||||
|
||||
private:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue