コード例 #1
0
ファイル: commitChain.go プロジェクト: FactomProject/factomd
// Execute the leader functions of the given message
func (m *CommitChainMsg) LeaderExecute(state interfaces.IState) {
	// Check if we have yet to see an entry.  If we have seen one (NoEntryYet == false) then
	// we can record it.
	if state.NoEntryYet(m.CommitChain.EntryHash, m.CommitChain.GetTimestamp()) {
		state.LeaderExecuteCommitChain(m)
	} else {
		state.FollowerExecuteCommitChain(m)
	}
}