erigon-pulse/eth
Felix Lange ae1b5b3ff2 eth, xeth: fix GasPriceOracle goroutine leak
XEth.gpo was being initialized as needed. WithState copies the XEth
struct including the gpo field. If gpo was nil at the time of the copy
and Call or Transact were invoked on it, an additional GPO listenLoop
would be spawned.

Move the lazy initialization to GasPriceOracle instead so the same GPO
instance is shared among all created XEths.

Fixes #1317
Might help with #1930
2015-10-27 18:43:47 +01:00
..
downloader core, eth, trie: fix data races and merge/review issues 2015-10-21 16:49:55 +03:00
fetcher core, eth, trie: fix data races and merge/review issues 2015-10-21 16:49:55 +03:00
filters core, eth, trie: fix data races and merge/review issues 2015-10-21 16:49:55 +03:00
backend_test.go core, eth, trie: fix data races and merge/review issues 2015-10-21 16:49:55 +03:00
backend.go console: 2015-10-22 00:22:39 +02:00
cpu_mining.go all: Add GPU mining, disabled by default 2015-10-07 13:19:30 +02:00
gasprice.go eth, xeth: fix GasPriceOracle goroutine leak 2015-10-27 18:43:47 +01:00
gpu_mining.go all: Add GPU mining, disabled by default 2015-10-07 13:19:30 +02:00
handler_test.go core, eth, trie: fix data races and merge/review issues 2015-10-21 16:49:55 +03:00
handler.go core, eth, trie: fix data races and merge/review issues 2015-10-21 16:49:55 +03:00
helper_test.go eth: clean out light node notions from eth 2015-10-19 10:03:10 +03:00
metrics.go core, eth, trie: fix data races and merge/review issues 2015-10-21 16:49:55 +03:00
peer.go core, eth, trie: direct state trie synchronization 2015-10-19 10:03:09 +03:00
protocol_test.go eth: clean out light node notions from eth 2015-10-19 10:03:10 +03:00
protocol.go eth: clean out light node notions from eth 2015-10-19 10:03:10 +03:00
sync_test.go core, eth, trie: fix data races and merge/review issues 2015-10-21 16:49:55 +03:00
sync.go core, eth, trie: fix data races and merge/review issues 2015-10-21 16:49:55 +03:00