EYBlockchain / nightfall_3

a mono-repo containing an optimistic version of nightfall
Creative Commons Zero v1.0 Universal
263 stars 56 forks source link

Parallelize trusted setup and contracts deployment #1388

Closed fullkomnun closed 1 year ago

fullkomnun commented 1 year ago

What does this implement/fix? Explain your changes.

Executes the "trusted setup" process in-parallel to the "smart contracts deployment"(compilation + migrations) process which reduces system bootstap (./bin/start-nightfall / docker-compose up) time by up to 2 minutes (on local dev machines and ci agents alike). Executes 'truffle' commands via a "promisified" shell. Executes the contracts setup (transfer of ownership and so) after both "trusted setup" and "smart contracts deployment" are concluded. Failure of any of the aforementioned stages should fail the entire bootsrap process.

Does this close any currently open issues?

There has been a relevant inline "TODO" but not an issue.

What commands can I run to test the change?

Sucessfull boostrap

Use-cases

Any other comments?

Nope