Description

View invokes the passed function in the context of a managed read-only transaction. Any errors returned from the user-supplied function are returned from this function.

Calling Rollback or Commit on the transaction passed to the user-supplied function will result in a panic.

View is referenced in 2 repositories

github.com/btcsuite/btcd

...