Skip to content

Commit

Permalink
feat(auxpow): remove the interval check of CreateAuxBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
RainFallsSilent committed Oct 21, 2023
1 parent 794fdd0 commit 6cef7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pow/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func (pow *Service) CreateAuxBlock(payToAddr string) (*types.Block, error) {
defer pow.mutex.Unlock()

if pow.chain.GetHeight() == 0 || pow.preChainHeight != pow.chain.GetHeight() ||
time.Now().After(pow.preTime.Add(createAuxBlockInterval)) {
time.Now().After(pow.preTime) {

if pow.preChainHeight != pow.chain.GetHeight() {
// Clear old blocks since they're obsolete now.
Expand Down

0 comments on commit 6cef7cb

Please sign in to comment.