• Martin Holst Swende's avatar
    consensus/clique, core: API cleanup (#23100) · 62891378
    Martin Holst Swende authored
    This removes some code:
    
    - The clique engine calculated the snapshot twice when verifying headers/blocks.
    
    - The method GetBlockHashesFromHash in Header/Block/Lightchain was only used by tests. It
      is now removed from the API.
      
    - The method GetTdByHash internally looked up the number before calling GetTd(hash, num).
      In many cases, callers already had the number, and used this method just because it has a
      shorter name. I have removed the method to make the API surface smaller.
    62891378
Name
Last commit
Last update
..
lightchain.go Loading commit data...
lightchain_test.go Loading commit data...
nodeset.go Loading commit data...
odr.go Loading commit data...
odr_test.go Loading commit data...
odr_util.go Loading commit data...
postprocess.go Loading commit data...
trie.go Loading commit data...
trie_test.go Loading commit data...
txpool.go Loading commit data...
txpool_test.go Loading commit data...