ensure_lock_account

function ensure_lock_account(type: text, account: account): account(source)

Retrieves the lock account given an account and the lock type. Creates the account if it does not exist.

Can only be called from an operation.

Parameters

type

the type of lock account

account

the account with which the lock account is associated

See also

ACCOUNT_TYPE_LOCK

for more information on lock accounts