diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-17 11:25:15 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-17 11:28:49 +0000 |
commit | 55fa0479a0db599d81500e57e355124f1fb9c05e (patch) | |
tree | d394bf9b6ad9f8d8320cc3a34e860c7af5bc671c /src/cryptonote_core/blockchain.h | |
parent | Merge pull request #1459 (diff) | |
download | monero-55fa0479a0db599d81500e57e355124f1fb9c05e.tar.xz |
rpc: new function and RPC to get alternative chain info
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r-- | src/cryptonote_core/blockchain.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h index 9afc22657..245dc6e73 100644 --- a/src/cryptonote_core/blockchain.h +++ b/src/cryptonote_core/blockchain.h @@ -844,6 +844,13 @@ namespace cryptonote void block_longhash_worker(const uint64_t height, const std::vector<block> &blocks, std::unordered_map<crypto::hash, crypto::hash> &map) const; + /** + * @brief returns a set of known alternate chains + * + * @return a list of chains + */ + std::list<std::pair<block_extended_info,uint64_t>> get_alternative_chains() const; + void cancel(); private: |