• Felix Lange's avatar
    eth: interrupt chain insertion on shutdown (#21114) · 9219e0fb
    Felix Lange authored
    This adds a new API method on core.BlockChain to allow interrupting
    running data inserts, and calls the method before shutting down the
    downloader.
    
    The BlockChain interrupt checks are now done through a method instead
    of inlining the atomic load everywhere. There is no loss of efficiency from
    this and it makes the interrupt protocol a lot clearer because the check is
    defined next to the method that sets the flag.
    9219e0fb
blockchain.go 92.4 KB