mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
Merge branch 'master' of github.com:tomochain/tomochain
This commit is contained in:
commit
a544971cd2
1 changed files with 2 additions and 4 deletions
|
|
@ -854,7 +854,7 @@ func (s *PublicBlockChainAPI) rpcOutputBlock(b *types.Block, inclTx bool, fullTx
|
||||||
}
|
}
|
||||||
var signers []common.Address
|
var signers []common.Address
|
||||||
var filterSigners []common.Address
|
var filterSigners []common.Address
|
||||||
finality := false
|
finality := int32(0)
|
||||||
if b.Number().Int64() > 0 {
|
if b.Number().Int64() > 0 {
|
||||||
addrBlockSigner := common.HexToAddress(common.BlockSigners)
|
addrBlockSigner := common.HexToAddress(common.BlockSigners)
|
||||||
signers, err = contracts.GetSignersFromContract(addrBlockSigner, client, b.Hash())
|
signers, err = contracts.GetSignersFromContract(addrBlockSigner, client, b.Hash())
|
||||||
|
|
@ -877,9 +877,7 @@ func (s *PublicBlockChainAPI) rpcOutputBlock(b *types.Block, inclTx bool, fullTx
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if countFinality >= len(masternodes)*75/100 {
|
finality = int32(countFinality * 100 / len(masternodes))
|
||||||
finality = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue