Skip to content

Commit f8e2d2c

Browse files
authored
Merge pull request #3976 from nspcc-dev/refactor-register-candidate
core: remove Echidna compatibility code from registerCandidate
2 parents 0717fa5 + a0c3d77 commit f8e2d2c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/core/native/native_neo.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -840,14 +840,6 @@ func (n *NEO) CalculateNEOHolderReward(d *dao.Simple, value *big.Int, start, end
840840

841841
func (n *NEO) registerCandidate(ic *interop.Context, args []stackitem.Item) stackitem.Item {
842842
pub := toPublicKey(args[0])
843-
if !ic.IsHardforkEnabled(config.HFEchidna) {
844-
ok, err := runtime.CheckKeyedWitness(ic, pub)
845-
if err != nil {
846-
panic(err)
847-
} else if !ok {
848-
return stackitem.NewBool(false)
849-
}
850-
}
851843
if !ic.VM.AddGas(n.getRegisterPriceInternal(ic.DAO)) {
852844
panic("insufficient gas")
853845
}

0 commit comments

Comments
 (0)