mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +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,8 +377,11 @@ 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)
|
||||
}
|
||||
//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 {
|
||||
// return ms[i].Stake > ms[j].Stake
|
||||
|
|
|
|||
Loading…
Reference in a new issue