Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
worker: no need to add more transaction if not mining
It could be a very old PoW logic, which try to add more transaction into the pending block when mining is stopped. Mining can be stopped when: 1.download started. 2.manually stopped by RPC. It is unnecessary to add more transaction into the pending block if a validator is stopped. And updateSnapshot() is not needed as well, it is to get the pending mining snapshot.
- Loading branch information