Skip to content

Rosetta Constructor DSL Support

Compare
Choose a tag to compare
@patrick-ogrady patrick-ogrady released this 06 Oct 19:50
· 356 commits to master since this release
4de0b5c

This PR adds support for [email protected], [email protected], and adds support the new Rosetta Constructor DSL (Ethereum example).

Configuration Changes

// ReconciliationCoverage is used to add conditions
// to reconciliation coverage for exiting `check:data`.
// All provided conditions must be satisfied before
// the end condition is considered satisfied.
//
// If FromTip, Tip, Height, and AccountCount are not provided,
// `check:data` will halt as soon as coverage surpasses
// Coverage.
type ReconciliationCoverage struct {
	// Coverage is some value [0.0, 1.0] that represents
	// the % of accounts reconciled.
	Coverage float64 `json:"coverage"`

	// FromTip is a boolean indicating if reconciliation coverage
	// should only be measured from tip (i.e. reconciliations
	// performed at or after tip was reached).
	FromTip bool `json:"from_tip,omitempty"`

	// Tip is a boolean indicating that tip must be reached
	// before reconciliation coverage is considered valid.
	Tip bool `json:"tip,omitempty"`

	// Index is an int64 indicating the height that must be
	// reached before reconciliation coverage is considered valid.
	Index *int64 `json:"height,omitempty"`

	// AccountCount is an int64 indicating the number of accounts
	// that must be observed before reconciliation coverage is considered
	// valid.
	AccountCount *int64 `json:"account_count,omitempty"`
}

Changelog

  • [configuration] Support advanced reconciliation end condition #154
  • [email protected] Update #152
  • Replace broken link for commit guidelines #151
  • Fix printing of reconciliation coverage percentage #150