bsc/miner
Steven Tran 31463f8dd1
parallel bloom calculation (#445)
* parallel bloom calculation

* indent

* add condition if bloomJobs not nil

* add handler for worker

* fix format

* bloomWorker should exit when all txs have been processed

* rename BloomPair => BloomHash

* add size to map

* rename & unique variable

* bloomJobs => bloomProcessors

* fix

* only assign bloom if empty

* abstraction method for processing receipt bloom

* remove duplicate receipt_processor

* rename Processor

* fix  ReceiptProcessor

* fix ReceiptBloomGenertor typo

* reduce worker to 1

* remove empty wg

* add defence code to check if channel is closed

* remove nil

* format fix

* remove thread pool

* use max 100 worker capacity

* reduce worker size

* refactor startWorker
2021-10-15 16:30:44 +08:00
..
miner_test.go trie : use trie.NewStackTrie instead of new(trie.Trie) (#22246) 2021-02-02 13:09:23 +01:00
miner.go fix pending block null issue (#358) 2021-08-10 12:03:15 +08:00
stress_clique.go eth: move eth.Config to a common package (#22205) 2021-02-05 13:51:15 +01:00
stress_ethash.go eth: move eth.Config to a common package (#22205) 2021-02-05 13:51:15 +01:00
unconfirmed_test.go all: remove redundant conversions and import names (#21903) 2020-11-25 21:00:23 +01:00
unconfirmed.go all: replace RWMutex with Mutex in places where RLock is not used (#21622) 2020-10-13 10:58:41 +02:00
worker_test.go [R4R] performance improvement in many aspects (#257) 2021-07-29 17:16:53 +08:00
worker.go parallel bloom calculation (#445) 2021-10-15 16:30:44 +08:00