Merge pull request #5380
113e4877
blockchain_stats: fix sign in formatting function (moneromooo-monero)adaea3ea
various: remove unused variables (moneromooo-monero)631ef00e
blockchain: some debug info when adding txes-from-block fails (moneromooo-monero)
This commit is contained in:
commit
915d9e5a1f
|
@ -205,7 +205,7 @@ plot 'stats.csv' index "DATA" using (timecolumn(1,"%Y-%m-%d")):4 with lines, ''
|
|||
char buf[8];
|
||||
unsigned int i;
|
||||
for (i=0; i<24; i++) {
|
||||
sprintf(buf, "\t%02d:00", i);
|
||||
sprintf(buf, "\t%02u:00", i);
|
||||
std::cout << buf;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1065,8 +1065,6 @@ namespace cryptonote
|
|||
// prefix
|
||||
get_transaction_prefix_hash(t, hashes[0]);
|
||||
|
||||
transaction &tt = const_cast<transaction&>(t);
|
||||
|
||||
const blobdata blob = tx_to_blob(t);
|
||||
const unsigned int unprunable_size = t.unprunable_size;
|
||||
const unsigned int prefix_size = t.prefix_size;
|
||||
|
|
|
@ -3690,6 +3690,8 @@ leave:
|
|||
//TODO: why is this done? make sure that keeping invalid blocks makes sense.
|
||||
add_block_as_invalid(bl, id);
|
||||
MERROR_VER("Block with id " << id << " added as invalid because of wrong inputs in transactions");
|
||||
MERROR_VER("tx_index " << tx_index << ", m_blocks_txs_check " << m_blocks_txs_check.size() << ":");
|
||||
for (const auto &h: m_blocks_txs_check) MERROR_VER(" " << h);
|
||||
bvc.m_verifivation_failed = true;
|
||||
return_tx_to_pool(txs);
|
||||
goto leave;
|
||||
|
|
Loading…
Reference in New Issue