From 2c02ddc2d9a3526cde07f392eb620a92f4cbbf40 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Fri, 14 Jul 2023 11:55:07 +0800 Subject: [PATCH] remove xdc0000000000000000000000000000000000000000 --- core/blockchain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index 7998b493cc..7fac44c075 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -2554,8 +2554,8 @@ func (bc *BlockChain) UpdateM1() error { if err != nil { return err } - //TODO: smart contract shouldn't return "0x0000000000000000000000000000000000000000" - if candidate.String() != "xdc0000000000000000000000000000000000000000" { + // TODO: smart contract shouldn't return "0x0000000000000000000000000000000000000000" + if !candidate.IsZero() { ms = append(ms, utils.Masternode{Address: candidate, Stake: v}) } }