Skip to content

optimize the logic ReorgNeeded, too much logic operation now #2601

@NathanBSC

Description

@NathanBSC

Rationale

reorg = !currentPreserve && (externPreserve ||
			extern.Time < current.Time ||
			extern.Time == current.Time &&
				((doubleSign && extern.Hash().Cmp(current.Hash()) < 0) ||
					(!doubleSign && f.rand.Float64() < 0.5)))

optimize the logic ReorgNeeded, too much logic operation now

Implementation

Do you have ideas regarding the implementation of this feature?
Are you willing to implement this feature?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions