func (b *Blockchain) GetState() primitives.State {
	tipHash := b.View.Chain.Tip().Hash

	state, found := b.stateManager.GetStateForHash(tipHash)
	if !found {
		panic("don't have state for tip")
	}

	return *state
}
// GetState gets a copy of the current state of the blockchain.
GetState gets a copy of the current state of the blockchain.
// GetState gets a copy of the current state of the blockchain .
func (b *Blockchain) GetState() primitives.State {
	tipHash := b.View.Chain.Tip().Hash
	state, found := b.stateManager.GetStateForHash(tipHash)
	if !found {
		panic("don't have state for tip")
	}
	return *state
}
func ( b * Blockchain ) GetState ( ) primitives . State { tipHash := b . View . Chain . Tip ( ) . Hash state , found := b . stateManager . GetStateForHash ( tipHash ) if ! found { panic ( " " ) } return * state }
GetState gets a copy of the current state of the blockchain.
GetState gets a copy of the current state of the blockchain .