• F
    les: fix crasher in NodeInfo when running as server (#17419) · 2695fa22
    Felix Lange 提交于
    * 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
    2695fa22
helper_test.go 11.7 KB