• Felix Lange's avatar
    eth, xeth: fix GasPriceOracle goroutine leak · ae1b5b3f
    Felix Lange authored
    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
    ae1b5b3f
Name
Last commit
Last update
Godeps Loading commit data...
_data Loading commit data...
accounts Loading commit data...
build Loading commit data...
cmd Loading commit data...
common Loading commit data...
compression/rle Loading commit data...
core Loading commit data...
crypto Loading commit data...
docker Loading commit data...
errs Loading commit data...
eth Loading commit data...
ethdb Loading commit data...
event Loading commit data...
generators Loading commit data...
jsre Loading commit data...
logger Loading commit data...
metrics Loading commit data...
miner Loading commit data...
p2p Loading commit data...
params Loading commit data...
pow Loading commit data...
rlp Loading commit data...
rpc Loading commit data...
tests Loading commit data...
trie Loading commit data...
whisper Loading commit data...
xeth Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...