Function sp_io::storage::start_transaction[][src]

pub fn start_transaction()

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.