Merge pull request #1731
a427235e
core: add a missing newline on a string to be logged (moneromooo-monero)b6a2230e
unit_tests: fix minor blockchain_db regression (moneromooo-monero)c488eca5
hardfork: tone down some logs (moneromooo-monero)
This commit is contained in:
commit
565c99f670
|
@ -191,10 +191,10 @@ void HardFork::init()
|
|||
}
|
||||
catch (...) { populate = true; }
|
||||
if (populate) {
|
||||
LOG_PRINT_L0("The DB has no hard fork info, reparsing from start");
|
||||
MINFO("The DB has no hard fork info, reparsing from start");
|
||||
height = 1;
|
||||
}
|
||||
LOG_PRINT_L1("reorganizing from " << height);
|
||||
MDEBUG("reorganizing from " << height);
|
||||
if (populate) {
|
||||
reorganize_from_chain_height(height);
|
||||
// reorg will not touch the genesis block, use this as a flag for populating done
|
||||
|
@ -203,7 +203,7 @@ void HardFork::init()
|
|||
else {
|
||||
rescan_from_chain_height(height);
|
||||
}
|
||||
LOG_PRINT_L1("reorganization done");
|
||||
MDEBUG("reorganization done");
|
||||
}
|
||||
|
||||
uint8_t HardFork::get_block_version(uint64_t height) const
|
||||
|
|
|
@ -339,7 +339,7 @@ namespace cryptonote
|
|||
crypto::generate_ring_signature(tx_prefix_hash, boost::get<txin_to_key>(tx.vin[i]).k_image, keys_ptrs, in_contexts[i].in_ephemeral.sec, src_entr.real_output, sigs.data());
|
||||
ss_ring_s << "signatures:" << ENDL;
|
||||
std::for_each(sigs.begin(), sigs.end(), [&](const crypto::signature& s){ss_ring_s << s << ENDL;});
|
||||
ss_ring_s << "prefix_hash:" << tx_prefix_hash << ENDL << "in_ephemeral_key: " << in_contexts[i].in_ephemeral.sec << ENDL << "real_output: " << src_entr.real_output;
|
||||
ss_ring_s << "prefix_hash:" << tx_prefix_hash << ENDL << "in_ephemeral_key: " << in_contexts[i].in_ephemeral.sec << ENDL << "real_output: " << src_entr.real_output << ENDL;
|
||||
i++;
|
||||
}
|
||||
|
||||
|
|
|
@ -288,7 +288,7 @@ TYPED_TEST(BlockchainDBTest, AddBlock)
|
|||
ASSERT_TRUE(compare_blocks(this->m_blocks[0], b));
|
||||
|
||||
// assert that we can't add the same block twice
|
||||
ASSERT_THROW(this->m_db->add_block(this->m_blocks[0], t_sizes[0], t_diffs[0], t_coins[0], this->m_txs[0]), BLOCK_EXISTS);
|
||||
ASSERT_THROW(this->m_db->add_block(this->m_blocks[0], t_sizes[0], t_diffs[0], t_coins[0], this->m_txs[0]), TX_EXISTS);
|
||||
|
||||
for (auto& h : this->m_blocks[0].tx_hashes)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue