mirror of https://github.com/embarklabs/embark.git
135fde0a85
Regular transactions (aka “dev funds”) exist in embark as a workaround to a known bug in geth when using metamask. The workaround is to send a transaction at a regular interval (1.5s), which pushes through any transactions that were stuck. The problem is that the transaction logs and trace logs become cluttered and difficult to parse visually. This PR disables regular transactions until the following conditions are met: 1. Embark is running geth 2. The user is running metamask in their browser 3. The user authenticates to the cockpit with `enableRegularTxs=1|true` in the query string. A console warning is show in large letters in the browser with a link to the cockpit URL that includes the special query string to enable regular txs. This could be extended later to have a button in the cockpit that start/stops regular txs. Or at least extended to allow disabling of regular txs once started. Support standalone blockchain process. |
||
---|---|---|
.. | ||
config | ||
public | ||
scripts | ||
src | ||
.env.production | ||
.gitignore | ||
.npmignore | ||
.npmrc | ||
.yarnrc | ||
README.md | ||
package.json | ||
yarn.lock |