go-ethereum/xeth
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
..
frontend.go console: 2015-10-22 00:22:39 +02:00
state.go core, eth, trie, xeth: merged state, chain, extra databases in one 2015-08-07 22:29:02 +02:00
types.go Add tests for uncle timestamps and refactor timestamp type 2015-08-25 04:46:11 +02:00
whisper_filter.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
whisper_message.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
whisper.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
xeth_test.go xeth: added address hex check and length check 2015-08-07 09:52:12 +02:00
xeth.go eth, xeth: fix GasPriceOracle goroutine leak 2015-10-27 18:43:47 +01:00