forked from Qortal/qortal
Added "volatile" to more fields, for thread-safety on reads. Changes to field values are done inside synchronized blocks so no need for AtomicInteger/AtomicBoolean. (Could be changed in the future to show intention/readability though). Added more statistics (tasks produced/consumed). Limited Network's EPC executor to 10 threads max.