Function parse_txs was modified so that rayon's parallel iterator is used only if multicore feature is set. See vec_into_iter in helpers.rs.
build script was modified to build singlecore and multicore versions of the library, additionally debug versions are being built. clean and publish scripts were modified accordingly.
This PR is based on https://github.com/zeropoolnetwork/libzeropool-rs/pull/32 and some other changes in
libzeropool-rs
repository and is adapted for our multithread implementation.In this PR, the following was done:
parse_txs
was modified so that rayon's parallel iterator is used only ifmulticore
feature is set. Seevec_into_iter
in helpers.rs.build
script was modified to build singlecore and multicore versions of the library, additionally debug versions are being built.clean
andpublish
scripts were modified accordingly.