mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-15 09:20:44 +00:00
temporarily bypass 0x00 returned from smc
This commit is contained in:
parent
f814908442
commit
ac0f04d7fc
1 changed files with 4 additions and 1 deletions
|
|
@ -377,7 +377,10 @@ func startNode(ctx *cli.Context, stack *node.Node) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warn("Can't get cap of a masternode candidate. Will ignore him", "address", candidate, "error", err)
|
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
|
//// order by cap
|
||||||
//sort.Slice(ms, func(i, j int) bool {
|
//sort.Slice(ms, func(i, j int) bool {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue