diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2018-08-17 18:21:53 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-17 18:21:53 +0800 |
commit | 2695fa2213fe5010a80970bca1078834662d5972 (patch) | |
tree | c6bda44cc6c86c378f6717b3d896ac339360e9d3 /miner | |
parent | f44046a1c6889049dbf0f9448075a43f5b280b09 (diff) | |
download | go-tangerine-2695fa2213fe5010a80970bca1078834662d5972.tar go-tangerine-2695fa2213fe5010a80970bca1078834662d5972.tar.gz go-tangerine-2695fa2213fe5010a80970bca1078834662d5972.tar.bz2 go-tangerine-2695fa2213fe5010a80970bca1078834662d5972.tar.lz go-tangerine-2695fa2213fe5010a80970bca1078834662d5972.tar.xz go-tangerine-2695fa2213fe5010a80970bca1078834662d5972.tar.zst go-tangerine-2695fa2213fe5010a80970bca1078834662d5972.zip |
les: fix crasher in NodeInfo when running as server (#17419)
* les: fix crasher in NodeInfo when running as server
The ProtocolManager computes CHT and Bloom trie roots by asking the
indexers for their current head. It tried to get the indexers from
LesOdr, but no LesOdr instance is created in server mode.
Attempt to fix this by moving the indexers, protocol creation and
NodeInfo to a new lesCommons struct which is embedded into both server
and client.
All this setup code should really be cleaned up, but this is just a
hotfix so we have to do that some other time.
* les: fix commons protocol maker
Diffstat (limited to 'miner')
0 files changed, 0 insertions, 0 deletions