Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountAtRound ¶
func AccountAtRound(ctx context.Context, account models.Account, round uint64, db idb.IndexerDb) (acct models.Account, err error)
AccountAtRound queries the idb.IndexerDb object for transactions and rewinds most fields of the account back to their values at the requested round. `round` must be <= `account.Round`
Types ¶
type ConsistencyError ¶
type ConsistencyError struct {
// contains filtered or unexported fields
}
ConsistencyError is returned when the database returns inconsistent (stale) results.
func (ConsistencyError) Error ¶
func (e ConsistencyError) Error() string
type SpecialAccountRewindError ¶
type SpecialAccountRewindError struct {
// contains filtered or unexported fields
}
SpecialAccountRewindError indicates that an attempt was made to rewind one of the special accounts.
func MakeSpecialAccountRewindError ¶
func MakeSpecialAccountRewindError(account string) *SpecialAccountRewindError
MakeSpecialAccountRewindError helper to initialize a SpecialAccountRewindError.
func (*SpecialAccountRewindError) Error ¶
func (sare *SpecialAccountRewindError) Error() string
Error is part of the error interface.
Click to show internal directories.
Click to hide internal directories.