Kura always thinks there was a soft fork, as a result:
- Blocks are duplicated in
blocks.json (file for debugging which can be enabled using [kura.debug] output_new_blocks = true in config)
- Kura writes block twice (this doesn't affect consumed disk space, but can be considered as a performance optimization)
|
if new_latest_written_block_hash != latest_written_block_hash { |
|
written_block_count -= 1; // There has been a soft-fork and we need to rewrite the top block. |
|
} |
cc @timofeevmd
Kura always thinks there was a soft fork, as a result:
blocks.json(file for debugging which can be enabled using[kura.debug] output_new_blocks = truein config)iroha/crates/iroha_core/src/kura.rs
Lines 219 to 221 in 294ccca
cc @timofeevmd