referrerpolicy=no-referrer-when-downgrade

Function sp_io::storage::start_transaction

source ·
pub fn start_transaction()
Expand description

Start a new nested transaction.

This allows to either commit or roll back all changes that are made after this call. For every transaction there must be a matching call to either rollback_transaction or commit_transaction. This is also effective for all values manipulated using the DefaultChildStorage API.

§Warning

This is a low level API that is potentially dangerous as it can easily result in unbalanced transactions. For example, FRAME users should use high level storage abstractions.