src/services/truncation.go
BeforeProposed
+1−1
1212 if index < node.Commit {
1313 return 0, errors.New("committed-conflict")
1414 }
15 node.Log = node.Log[:index+1]
15 node.Log = node.Log[:index]
1616 }
1717 if index == len(node.Log) {
1818 node.Log = append(node.Log, entry)