EspressoSystems / cape

Configurable Asset Privacy for Ethereum
https://cape.docs.espressosys.com/
GNU General Public License v3.0
93 stars 16 forks source link

Get some parallelism in the faucet. #1170

Closed jbearer closed 2 years ago

jbearer commented 2 years ago

Since the faucet now breaks records in half, creating more than one big record at a time, we can generate multiple simultaneous transfers when breaking up records, and then wait for them all at the same time, rather than waiting for a transfer to complete before even building the next one. Sometimes, we do not have to wait for the transfers to complete at all.

This change also has the record breaker thread hold the wallet lock less often, and simplifies the start-up process which waits for new records to be created.

Closes #1169