Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Upgrade] Go-Ethereum release v1.9.19 #1143

Closed
wants to merge 47 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
8e7bee9
params: begin v1.9.19 release cycle
karalabe Jul 27, 2020
79ce553
signer/storage: fix a badly ordered error check (#21379)
6543 Jul 28, 2020
93da0cf
cmd, core, eth, light, trie: dump clean cache periodically (#20391)
rjl493456442 Jul 28, 2020
c47052a
core: sort txs at the same gas price by received time
hendrikhofstadt Jul 22, 2020
298a19b
core: API-less transaction time sorting
karalabe Jul 28, 2020
28c5a8a
les: implement new les fetcher (#20692)
rjl493456442 Jul 28, 2020
37564ce
miner: refactor helper functions in worker.go (#21044)
robert-zaremba Jul 28, 2020
350a049
les: fix unittest (#21382)
rjl493456442 Jul 29, 2020
1976bb3
eth/downloader: remove eth62 (#21378)
renaynay Jul 29, 2020
abf2d7d
build: use -trimpath flag when building executables (#21374)
jyap808 Jul 29, 2020
9e04c5e
core/bloombits: use single channel for shutdown (#20878)
ucwong Jul 29, 2020
ff90894
core/rawdb: convert some comments to godoc convention (#21384)
meowsbits Jul 29, 2020
a00dc50
Merge pull request #21358 from hendrikhofstadt/fix/tx-sort-time
karalabe Jul 30, 2020
9c2ac6f
rpc: remove silly use of ReadVarint in subscription ID generator (#21…
fjl Jul 31, 2020
290d6bd
rpc: add SetHeader method to Client (#21392)
renaynay Aug 3, 2020
b2b14e6
signer/core: EIP-712 encoded data should not reject a Domain without …
natsukagami Aug 3, 2020
c0c0161
node: refactor package node (#21105)
renaynay Aug 3, 2020
90dedea
signer: EIP 712, parse `bytes` and `bytesX` as hex strings + correct …
natsukagami Aug 3, 2020
e24e05d
cmd/devp2p: print enode:// URL in enrdump (#21270)
adamschmideg Aug 4, 2020
b35e4fc
core: avoid modification of accountSet cache in tx_pool (#21159)
duanhao0814 Aug 4, 2020
82a9e11
ethstats: avoid concurrent write on websocket (#21404)
holiman Aug 4, 2020
8ead45c
core/vm: avoid map lookups for accessing jumpdest analysis
holiman Aug 4, 2020
1d25039
p2p/nat: limit UPNP request concurrency (#21390)
fjl Aug 5, 2020
5a88a7c
core: use errors.Is for consensus errors check (#21095)
robert-zaremba Aug 5, 2020
2de37f2
downloader: add eth65 tests (#21383)
renaynay Aug 5, 2020
4a04127
cmd/geth: fix import / export issues related to DB unavailability (#2…
renaynay Aug 6, 2020
4fde0ca
Merge pull request #21411 from holiman/fix_codelookup
karalabe Aug 6, 2020
d21303f
cmd/geth: fixes db unavailability for chain commands (#21415)
renaynay Aug 6, 2020
5d4512b
eth: use maxQueuedTxAnns for to limit the number of transactions anno…
timcooijmans Aug 6, 2020
68754f3
cmd/utils: grant snapshot cache to trie if disabled (#21416)
karalabe Aug 6, 2020
983cb25
les: update checktime even if check fails
holiman Aug 7, 2020
3bb8a4e
Merge pull request #21425 from holiman/leslock
karalabe Aug 7, 2020
4b9c0ea
eth/downloader: save the correct delivery time for state sync
karalabe Aug 7, 2020
8f24097
Merge pull request #21427 from karalabe/fix-statesync-delivery-time
karalabe Aug 7, 2020
6a53ce2
ethstats: overwrite old errors
holiman Aug 7, 2020
e401f5f
les: close all connected les-server when shutdown (#21426)
rjl493456442 Aug 7, 2020
9fea1a5
eth/downloader: set deliverytime on drops and timeouts too
holiman Aug 7, 2020
06125bf
Merge pull request #21429 from holiman/timerfix
karalabe Aug 7, 2020
48b484c
Merge pull request #21428 from holiman/ethstats_moar
karalabe Aug 7, 2020
7cee250
eth/downloader: allow all timers to exit
holiman Aug 10, 2020
cbbc54c
Merge pull request #21433 from holiman/statsync_exiter
karalabe Aug 10, 2020
9f45d6e
ethstats: split read and write lock, otherwise they'll lock up
karalabe Aug 10, 2020
4baa574
Merge pull request #21434 from karalabe/ethstats-split-rwlock
karalabe Aug 10, 2020
c28fd9c
tests: add Berlin-definition identical to YOLOv1 (#21435)
holiman Aug 10, 2020
7afdf79
params: update CHTs for v1.9.19
karalabe Aug 11, 2020
74925e5
Merge pull request #21437 from karalabe/cht-1.9.19
karalabe Aug 11, 2020
3e06419
params: release Geth v1.9.19
karalabe Aug 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rpc: remove silly use of ReadVarint in subscription ID generator (#21…
…391)

Found by @protolambda
  • Loading branch information
fjl committed Jul 31, 2020
commit 9c2ac6fbd5a12b3f30feb78f3d358dca31603a86
9 changes: 6 additions & 3 deletions rpc/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package rpc

import (
"bufio"
"container/list"
"context"
crand "crypto/rand"
Expand Down Expand Up @@ -51,10 +50,14 @@ func NewID() ID {

// randomIDGenerator returns a function generates a random IDs.
func randomIDGenerator() func() ID {
seed, err := binary.ReadVarint(bufio.NewReader(crand.Reader))
if err != nil {
var buf = make([]byte, 8)
var seed int64
if _, err := crand.Read(buf); err == nil {
seed = int64(binary.BigEndian.Uint64(buf))
} else {
seed = int64(time.Now().Nanosecond())
}

var (
mu sync.Mutex
rng = rand.New(rand.NewSource(seed))
Expand Down