Remove public middleware (temporary) (#5665)

This commit is contained in:
Jaco Greeff 2017-05-19 18:05:44 +02:00 committed by GitHub
parent ae0841598f
commit c944b2e632
2 changed files with 7 additions and 5 deletions

View File

@ -23,7 +23,7 @@ import { Db, Eth, Parity, Net, Personal, Shh, Signer, Trace, Web3 } from './rpc'
import Subscriptions from './subscriptions';
import util from './util';
import { isFunction } from './util/types';
import { LocalAccountsMiddleware } from './local';
// import { LocalAccountsMiddleware } from './local';
export default class Api extends EventEmitter {
constructor (transport, allowSubscriptions = true) {
@ -54,9 +54,9 @@ export default class Api extends EventEmitter {
const middleware = this.parity
.nodeKind()
.then((nodeKind) => {
if (nodeKind.availability === 'public') {
return LocalAccountsMiddleware;
}
// if (nodeKind.availability === 'public') {
// return LocalAccountsMiddleware;
// }
return null;
})

View File

@ -73,7 +73,9 @@ module.exports = {
resolve: {
alias: {
'~': path.resolve(__dirname, '../src')
'~': path.resolve(__dirname, '../src'),
'secp256k1': path.resolve(__dirname, '../node_modules/secp256k1/js'),
'keythereum': path.resolve(__dirname, '../node_modules/keythereum/dist/keythereum')
},
modules: [
path.resolve('./src'),