mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
eth: simplify bigInt usage in BroadcastTransactions
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
44e3cd5582
commit
129a94b6af
1 changed files with 2 additions and 2 deletions
|
|
@ -499,8 +499,8 @@ func (h *handler) BroadcastTransactions(txs types.Transactions) {
|
||||||
}
|
}
|
||||||
atomic.StoreInt64(&h.lastDirect, directInt)
|
atomic.StoreInt64(&h.lastDirect, directInt)
|
||||||
|
|
||||||
direct := big.NewInt(directInt) // Number of peers to send directly to
|
direct := big.NewInt(directInt) // Number of peers to send directly to
|
||||||
total := new(big.Int).Exp(direct, big.NewInt(2), nil) // Stabilise total peer count a bit based on sqrt peers
|
total := big.NewInt(directInt * directInt) // Stabilise total peer count a bit based on sqrt peers
|
||||||
|
|
||||||
var (
|
var (
|
||||||
signer = types.LatestSigner(h.chain.Config()) // Don't care about chain status, we just need *a* sender
|
signer = types.LatestSigner(h.chain.Config()) // Don't care about chain status, we just need *a* sender
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue