Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ExtendedRetryElapsedTime is used to override the default fetcher // retry elapsed time. In practice, extending the retry elapsed time // has prevented retry exhaustion errors when many goroutines are // used to fetch data from the Rosetta server. // // TODO: make configurable ExtendedRetryElapsedTime = 5 * time.Minute )
Variables ¶
View Source
var ( // BootstrapBalances is a path to a file used to bootstrap // balances before starting syncing. Populating this value // after beginning syncing will return an error. BootstrapBalances string // LookupBalanceByBlock determines if balances are looked up // at the block where a balance change occurred instead of at the current // block. Blockchains that do not support historical balance lookup // should set this to false. LookupBalanceByBlock bool // DataDir is a folder used to store logs // and any data used to perform validation. DataDir string // StartIndex is the block index to start syncing. StartIndex int64 // EndIndex is the block index to stop syncing. EndIndex int64 // BlockConcurrency is the concurrency to use // while fetching blocks. BlockConcurrency uint64 // TransactionConcurrency is the concurrency to use // while fetching transactions (if required). TransactionConcurrency uint64 // AccountConcurrency is the concurrency to use // while fetching accounts during reconciliation. AccountConcurrency uint64 // LogBlocks determines if blocks are // logged. LogBlocks bool // LogTransactions determines if transactions are // logged. LogTransactions bool // LogBalanceChanges determines if balance changes are // logged. LogBalanceChanges bool // LogReconciliations determines if reconciliations are // logged. LogReconciliations bool // HaltOnReconciliationError determines if processing // should stop when encountering a reconciliation error. // It can be beneficial to collect all reconciliation errors // during development. HaltOnReconciliationError bool // ExemptFile is an absolute path to a file listing all accounts // to exempt from balance tracking and reconciliation. ExemptFile string // InterestingFile is an absolute path to a file listing all accounts // to actively reconcile on each block (if there are no operations // present for the account, the reconciler asserts a balance change of 0). InterestingFile string )
View Source
var ( // ServerURL is the base URL for a Rosetta // server to validate. ServerURL string )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.