67P / kredits-contracts

:warning: [MOVED] Smart contracts and JS API for Kosmos Kredits
https://gitea.kosmos.org/kredits/contracts
4 stars 4 forks source link

Don't mine blocks instantly on devchain #158

Closed raucao closed 4 years ago

raucao commented 4 years ago

In Ganache, it is possible to deactivate auto-mining and set a block time in seconds.

Background is that I'm actually stuck with Web UI development right now, because everything is instantly confirmed, but want to design exactly the situation where there's a waiting time in between action and confirmation (https://github.com/67P/kredits-web/issues/120).

I was also wondering why we don't use the actual Ganache app, which is available for all of Linux, Mac, and Windows, where one can inspect and configure all kinds of devchain details via its UI. Would that be possible with our setup maybe?

raucao commented 4 years ago

By the way, the argument for ganache-cli would be --blocktime, but aragon devchain doesn't seem to allow most additional chain options.

raucao commented 4 years ago

Asked on Aragon Chat, because the Internet didn't know. Let's see.

raucao commented 4 years ago

Yay:

Hey @raucao I recently include some additional options to configure the devchain (e.g. gas-limit, network-id, mnemonic). I can include --blocktime and other relevant configurations. Do you have some additional suggestion on that?

Note that this will be possible on the next aragonCLI version that we will publish in the next couple of days

raucao commented 4 years ago

From last night:

@raucao Now with last aragonCLI version you are able to configure --blocktime with aragon devchain. I'll also include the option on aragon run on next patch release. Documentation will be updated soon as well