Skip to content

Commit a0c3d77

Browse files
TuralchikTural Devrishev
authored andcommitted
core: remove Echidna compatibility code from registerCandidate
Close #3774. Signed-off-by: Tural Devrishev <[email protected]>
1 parent 0c13c07 commit a0c3d77

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)