Skip to content

Commit

Permalink
remove snapshot lock logic (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
calmbeing authored May 16, 2023
1 parent 3128cb6 commit 98a5f98
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,6 @@ type Parlia struct {

signerLock sync.RWMutex // Protects the signer fields

snapLock sync.RWMutex // Protects snapshots creation

validatorSetABIBeforeLuban abi.ABI
validatorSetABI abi.ABI
slashABI abi.ABI
Expand Down Expand Up @@ -715,8 +713,6 @@ func (p *Parlia) snapshot(chain consensus.ChainHeaderReader, number uint64, hash
if s, ok := p.recentSnaps.Get(hash); ok {
snap = s
} else {
p.snapLock.Lock()
defer p.snapLock.Unlock()
doLog = true
}

Expand Down

0 comments on commit 98a5f98

Please sign in to comment.