diff options
author | Felix Lange <fjl@twurst.com> | 2015-10-27 04:42:24 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-10-28 01:43:47 +0800 |
commit | ae1b5b3ff2611af1232643d38e13a77d704dae28 (patch) | |
tree | 2f575d95db4fe0e6f02308a21928f5fe2ed6e268 /p2p/dial.go | |
parent | 77878f76a935061cee82ae9c2a1bc64b192b592b (diff) | |
download | go-tangerine-ae1b5b3ff2611af1232643d38e13a77d704dae28.tar go-tangerine-ae1b5b3ff2611af1232643d38e13a77d704dae28.tar.gz go-tangerine-ae1b5b3ff2611af1232643d38e13a77d704dae28.tar.bz2 go-tangerine-ae1b5b3ff2611af1232643d38e13a77d704dae28.tar.lz go-tangerine-ae1b5b3ff2611af1232643d38e13a77d704dae28.tar.xz go-tangerine-ae1b5b3ff2611af1232643d38e13a77d704dae28.tar.zst go-tangerine-ae1b5b3ff2611af1232643d38e13a77d704dae28.zip |
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
Diffstat (limited to 'p2p/dial.go')
0 files changed, 0 insertions, 0 deletions