mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 21:34:53 -04:00
Merge pull request #4753
157054b8
hardfork: initialize current_fork_index in ctor (moneromooo-monero)2362baf7
network_throttle: initialize m_last_sample_time in ctor (moneromooo-monero)d9400f69
serializtion: add missing mainnet and stagenet fields for 0mq (moneromooo-monero)cbe0122b
wallet2: initialize amount to 0 in tx_scan_info_t ctor (moneromooo-monero)
This commit is contained in:
commit
59e8a4c306
4 changed files with 10 additions and 4 deletions
|
@ -56,12 +56,13 @@ static uint8_t get_block_version(const cryptonote::block &b)
|
|||
|
||||
HardFork::HardFork(cryptonote::BlockchainDB &db, uint8_t original_version, uint64_t original_version_till_height, time_t forked_time, time_t update_time, uint64_t window_size, uint8_t default_threshold_percent):
|
||||
db(db),
|
||||
original_version(original_version),
|
||||
original_version_till_height(original_version_till_height),
|
||||
forked_time(forked_time),
|
||||
update_time(update_time),
|
||||
window_size(window_size),
|
||||
default_threshold_percent(default_threshold_percent)
|
||||
default_threshold_percent(default_threshold_percent),
|
||||
original_version(original_version),
|
||||
original_version_till_height(original_version_till_height),
|
||||
current_fork_index(0)
|
||||
{
|
||||
if (window_size == 0)
|
||||
throw "window_size needs to be strictly positive";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue