Add HACK explanation

This commit is contained in:
Jacob Evans
2019-03-20 11:36:30 +01:00
parent c0288c5f26
commit 47bbcb9935

View File

@@ -16,6 +16,10 @@ export const providerUtils = {
if (providerEngine.start === undefined) {
throw new Error(`Invalid Web3ProviderEngine`);
}
// HACK: When calling start() Web3ProviderEngine starts a block polling service
// this continuously pulls data from the network and can result in high data usage
// for long running services. If used in a front end application this can cause
// a high amount of load on a node (one request per user per block).
providerEngine._ready.go();
providerEngine._running = true;
},