From ac0f04d7fc563b1371f05352c02bc44df83a1dcc Mon Sep 17 00:00:00 2001 From: MestryOmkar Date: Fri, 12 Oct 2018 14:21:09 +0530 Subject: [PATCH] temporarily bypass 0x00 returned from smc --- cmd/XDC/main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/XDC/main.go b/cmd/XDC/main.go index 7d92aa6702..3ab501eae9 100644 --- a/cmd/XDC/main.go +++ b/cmd/XDC/main.go @@ -377,7 +377,10 @@ func startNode(ctx *cli.Context, stack *node.Node) { if err != nil { log.Warn("Can't get cap of a masternode candidate. Will ignore him", "address", candidate, "error", err) } - ms = append(ms, clique.Masternode{Address: candidate, Stake: v.String()}) + //TODO: smart contract shouldn't return "0x0000000000000000000000000000000000000000" + if candidate.String() != "0x0000000000000000000000000000000000000000" { + ms = append(ms, clique.Masternode{Address: candidate, Stake: v.String()}) + } } //// order by cap //sort.Slice(ms, func(i, j int) bool {