DE-labtory/it-chain

[consensus] Refactory making receipients from representative

hihiboss opened this issue · 3 comments

Component
consensus - pbft

Assignee
.

Detail
In state_api.go,

receipients := make([]pbft.Representative, 0)
for _, rep := range state.Representatives {
	if rep.ID != s.publisherID {
		receipients = append(receipients, rep)
	}
}

is duplicated. So, it will be good that you separate this to 'state' domain function.

state_api.go에서

receipients := make([]pbft.Representative, 0)
for _, rep := range state.Representatives {
	if rep.ID != s.publisherID {
		receipients = append(receipients, rep)
	}
}

가 중복되고 있는데 이를 state 도메인 함수로 따로 빼면 좋을 것 같습니다!

Reference
.

작업해보고 싶습니다! 어떤 분께 연락드려야 할까요?

작업중 댓글 다시고 작업하시면 됩니다!!
그리고 질문있으시면 저(@hihiboss)에게 질문주세요!!

작업중입니다!