Yesterday I ran into the following errors. Thought my blockchain copy was corrupt, so I went to a backup from 10 days ago, it synced to the same point again, then the same errors. Should I assume it is corrupt further back? Any ideas what to do to avoid syncing from scratch? Export the blockchain.raw and import it back in from further back?
2018-06-13 09:47:18.419 [P2P1] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:310 [195.201.21.23:18080 OUT] Sync data returned a new top block candidate: 1592745 -> 1593980 [Your node is 1235 blocks (1 days) behind]
SYNCHRONIZATION started
2018-06-13 09:48:09.970 [P2P1] WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:75 Failed to query m_blocks: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:48:09.970 [P2P1] ERROR txpool src/cryptonote_core/tx_pool.cpp:254 transaction already exists at inserting in memory pool: Error adding txpool tx metadata to db transaction: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:48:09.970 [P2P1] WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:75 Failed to query m_blocks: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:48:09.970 [P2P1] ERROR cn src/cryptonote_core/cryptonote_core.cpp:749 Exception at [core::handle_incoming_txs()], what=Failed to query m_blocks: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:48:09.986 [P2P1] WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:75 Failed to commit a transaction to the db: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:48:09.986 [P2P1] ERROR blockchain src/cryptonote_core/blockchain.cpp:3777 Exception in cleanup_handle_incoming_blocks: Failed to commit a transaction to the db: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:49:26.284 [P2P9] ERROR txpool src/cryptonote_core/tx_pool.cpp:400 internal error: try to insert duplicate iterator in key_image set
2018-06-13 09:49:26.315 [P2P9] ERROR txpool src/cryptonote_core/tx_pool.cpp:400 internal error: try to insert duplicate iterator in key_image set
2018-06-13 09:49:26.378 [P2P9] ERROR txpool src/cryptonote_core/tx_pool.cpp:400 internal error: try to insert duplicate iterator in key_image set
2018-06-13 09:49:26.425 [P2P9] ERROR txpool src/cryptonote_core/tx_pool.cpp:400 internal error: try to insert duplicate iterator in key_image set
2018-06-13 09:49:26.471 [P2P9] ERROR txpool src/cryptonote_core/tx_pool.cpp:400 internal error: try to insert duplicate iterator in key_image set
2018-06-13 09:49:26.487 [P2P9] WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:75 Failed to query m_blocks: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:49:26.487 [P2P9] ERROR txpool src/cryptonote_core/tx_pool.cpp:254 transaction already exists at inserting in memory pool: Error adding txpool tx metadata to db transaction: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:49:26.487 [P2P9] WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:75 Failed to query m_blocks: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:49:26.487 [P2P9] ERROR cn src/cryptonote_core/cryptonote_core.cpp:749 Exception at [core::handle_incoming_txs()], what=Failed to query m_blocks: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:49:26.487 [P2P9] WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:75 Failed to commit a transaction to the db: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:49:26.487 [P2P9] ERROR blockchain src/cryptonote_core/blockchain.cpp:3777 Exception in cleanup_handle_incoming_blocks: Failed to commit a transaction to the db: MDB_BAD_TXN: Transaction must abort, has a child, or is invalid
2018-06-13 09:49:51.783 [P2P6] INFO global src/cryptonote_core/blockchain.cpp:1534