Change all packages to use web3providerengine without excess polling

This commit is contained in:
Jacob Evans
2019-03-18 13:48:12 +01:00
parent 6a28e41bc8
commit 180c65cfeb
13 changed files with 30 additions and 24 deletions

View File

@@ -5,6 +5,7 @@ import {
RPCSubprovider,
Web3ProviderEngine,
} from '@0x/subproviders';
import { providerUtils } from '@0x/utils';
import * as fs from 'fs';
import * as _ from 'lodash';
@@ -68,7 +69,7 @@ export const web3Factory = {
} else {
provider.addProvider(new RPCSubprovider(config.rpcUrl || constants.RPC_URL));
}
provider.start();
providerUtils.startProviderEngine(provider);
return provider;
},
};