func (b *Blockchain) GetUpdatedState(upTo uint64) (*primitives.State, error) {
	tip := b.View.Chain.Tip()

	view := NewChainView(tip)

	_, tipState, err := b.stateManager.GetStateForHashAtSlot(tip.Hash, upTo, &view, b.config)
	if err != nil {
		return nil, err
	}

	tipStateCopy := tipState.Copy()

	return &tipStateCopy, nil
}
// GetUpdatedState gets the tip, but with processed slots/epochs as appropriate.
GetUpdatedState gets the tip, but with processed slots/epochs as appropriate.
// GetUpdatedState gets the tip but with processed slots / epochs as appropriate .
func (b *Blockchain) GetUpdatedState(upTo uint64) (*primitives.State, error) {
	tip := b.View.Chain.Tip()
	view := NewChainView(tip)
	_, tipState, err := b.stateManager.GetStateForHashAtSlot(tip.Hash, upTo, &view, b.config)
	if err != nil {
		return nil, err
	}
	tipStateCopy := tipState.Copy()
	return &tipStateCopy, nil
}
func ( b * Blockchain ) GetUpdatedState ( upTo uint64 ) ( * primitives . State , error ) { tip := b . View . Chain . Tip ( ) view := NewChainView ( tip ) _ , tipState , err := b . stateManager . GetStateForHashAtSlot ( tip . Hash , upTo , & view , b . config ) if err != nil { return nil , err } tipStateCopy := tipState . Copy ( ) return & tipStateCopy , nil }
GetUpdatedState gets the tip, but with processed slots/epochs as appropriate.
GetUpdatedState gets the tip but with processed slots / epochs as appropriate .