Open tzubcic-tolar opened 4 years ago
https://github.com/ethereum/aleth/blob/2fe1bec5022e8160da03cf47994a093a1686646f/libdevcore/OverlayDB.cpp#L63
Since writeBatch (which is a unique_ptr) is moved, if m_db->commit() throws, the next retry will attempt to call it with a unique_ptr that has been moved from.
writeBatch
unique_ptr
m_db->commit()
https://github.com/ethereum/aleth/blob/2fe1bec5022e8160da03cf47994a093a1686646f/libdevcore/OverlayDB.cpp#L63
Since
writeBatch
(which is aunique_ptr
) is moved, ifm_db->commit()
throws, the next retry will attempt to call it with aunique_ptr
that has been moved from.