aboutsummaryrefslogtreecommitdiffstats
path: root/core/agreement-state.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/agreement-state.go')
-rw-r--r--core/agreement-state.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/agreement-state.go b/core/agreement-state.go
index 426b062..4997ddc 100644
--- a/core/agreement-state.go
+++ b/core/agreement-state.go
@@ -69,9 +69,9 @@ func newInitialState(a *agreementData) *initialState {
func (s *initialState) state() agreementStateType { return stateInitial }
func (s *initialState) clocks() int { return 0 }
func (s *initialState) nextState() (agreementState, error) {
+ hash := s.a.recv.ProposeBlock()
s.a.lock.Lock()
defer s.a.lock.Unlock()
- hash := s.a.recv.ProposeBlock()
s.a.recv.ProposeVote(&types.Vote{
Type: types.VoteInit,
BlockHash: hash,