- All Superinterfaces:
AutoCloseable,Store
A store that can be checked out, that is, its view of the world can be moved
back in time. Different moments of the store are identifies by hashes, that
can be checked out when needed.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckout(byte[] hash) Resets the store to the view of the world expressed by the given hash.Methods inherited from interface java.lang.AutoCloseable
closeMethods inherited from interface io.hotmoka.local.Store
getError, getHistory, getHistoryUncommitted, getManifest, getManifestUncommitted, getNow, getRequest, getResponse, getResponseUncommitted, push, push, replace
-
Method Details
-
checkout
void checkout(byte[] hash) Resets the store to the view of the world expressed by the given hash. This assumes that no commit after the one that created the given hash has been garbage-collected, since otherwise some data might be missing for the given hash, which might result in missing objects.- Parameters:
hash- the hash to reset to
-