aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.h
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2014-10-13 00:31:21 -0400
committerwarptangent <warptangent@inbox.com>2015-01-04 18:41:44 -0800
commit07733f98c02490bf972ae5f5f7ba25a49a846dec (patch)
tree44dfea351e18f00316a8123b474207077ac3c1f6 /src/cryptonote_core/blockchain.h
parentstupid past me, fixing typos and shit... (diff)
downloadmonero-07733f98c02490bf972ae5f5f7ba25a49a846dec.tar.xz
update new blockchain to build with new changes
Still need to add in the new checkpointing functionality, as well as touch up a few things, but is okay for now.
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r--src/cryptonote_core/blockchain.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h
index 27e5cde8c..884de122d 100644
--- a/src/cryptonote_core/blockchain.h
+++ b/src/cryptonote_core/blockchain.h
@@ -81,8 +81,7 @@ namespace cryptonote
Blockchain(tx_memory_pool& tx_pool);
- bool init() { return init(tools::get_default_data_dir()); }
- bool init(const std::string& config_folder);
+ bool init(const std::string& config_folder, bool testnet = false);
bool deinit();
void set_checkpoints(checkpoints&& chk_pts) { m_checkpoints = chk_pts; }
@@ -189,7 +188,7 @@ namespace cryptonote
bool prevalidate_miner_transaction(const block& b, uint64_t height);
bool validate_miner_transaction(const block& b, size_t cumulative_block_size, uint64_t fee, uint64_t& base_reward, uint64_t already_generated_coins);
bool validate_transaction(const block& b, uint64_t height, const transaction& tx);
- bool rollback_blockchain_switching(std::list<block>& original_chain);
+ bool rollback_blockchain_switching(std::list<block>& original_chain, uint64_t rollback_height);
bool add_transaction_from_block(const transaction& tx, const crypto::hash& tx_id, const crypto::hash& bl_id, uint64_t bl_height);
bool push_transaction_to_global_outs_index(const transaction& tx, const crypto::hash& tx_id, std::vector<uint64_t>& global_indexes);
bool pop_transaction_from_global_index(const transaction& tx, const crypto::hash& tx_id);
@@ -199,7 +198,7 @@ namespace cryptonote
bool add_block_as_invalid(const block& bl, const crypto::hash& h);
bool add_block_as_invalid(const block_extended_info& bei, const crypto::hash& h);
bool check_block_timestamp(const block& b);
- bool check_block_timestamp(const std::vector<uint64_t>& timestamps, const block& b);
+ bool check_block_timestamp(std::vector<uint64_t>& timestamps, const block& b);
uint64_t get_adjusted_time();
bool complete_timestamps_vector(uint64_t start_height, std::vector<uint64_t>& timestamps);
bool update_next_cumulative_size_limit();