func (sm *ShardStateManager) GetTip() (State, csmt.TreeDatabase) {
	sm.stateLock.Lock()
	defer sm.stateLock.Unlock()
	return sm.tipDB.state, sm.tipDB.db
}
// GetTip gets the state of the current tip.
GetTip gets the state of the current tip.
// GetTip gets the state of the current tip .
func (sm *ShardStateManager) GetTip() (State, csmt.TreeDatabase) {
	sm.stateLock.Lock()
	defer sm.stateLock.Unlock()
	return sm.tipDB.state, sm.tipDB.db
}
func ( sm * ShardStateManager ) GetTip ( ) ( State , csmt . TreeDatabase ) { sm . stateLock . Lock ( ) defer sm . stateLock . Unlock ( ) return sm . tipDB . state , sm . tipDB . db }
GetTip gets the state of the current tip.
GetTip gets the state of the current tip .