Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
86b417e8
Commit
86b417e8
authored
Jan 19, 2015
by
Marek Kotewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for autoprovider
parent
823fb299
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
13 deletions
+9
-13
ethereum.js
dist/ethereum.js
+3
-5
ethereum.js.map
dist/ethereum.js.map
+3
-3
ethereum.min.js
dist/ethereum.min.js
+1
-1
autoprovider.js
lib/autoprovider.js
+2
-3
providermanager.js
lib/providermanager.js
+0
-1
No files found.
dist/ethereum.js
View file @
86b417e8
...
@@ -387,10 +387,9 @@ module.exports = {
...
@@ -387,10 +387,9 @@ module.exports = {
* if it fails, it uses HttpRpcProvider
* if it fails, it uses HttpRpcProvider
*/
*/
// TODO: is these line is supposed to be here?
var
web3
=
require
(
'./web3'
);
// jshint ignore:line
if
(
"build"
!==
'build'
)
{
/*
if
(
"build"
!==
'build'
)
{
/*
var WebSocket = require('ws'); // jshint ignore:line
var WebSocket = require('ws'); // jshint ignore:line
var web3 = require('./web3'); // jshint ignore:line
*/
}
*/
}
/**
/**
...
@@ -433,7 +432,7 @@ var AutoProvider = function (userOptions) {
...
@@ -433,7 +432,7 @@ var AutoProvider = function (userOptions) {
self
.
poll
=
self
.
provider
.
poll
.
bind
(
self
.
provider
);
self
.
poll
=
self
.
provider
.
poll
.
bind
(
self
.
provider
);
}
}
self
.
sendQueue
.
forEach
(
function
(
payload
)
{
self
.
sendQueue
.
forEach
(
function
(
payload
)
{
self
.
provider
(
payload
);
self
.
provider
.
send
(
payload
);
});
});
self
.
onmessageQueue
.
forEach
(
function
(
handler
)
{
self
.
onmessageQueue
.
forEach
(
function
(
handler
)
{
self
.
provider
.
onmessage
=
handler
;
self
.
provider
.
onmessage
=
handler
;
...
@@ -474,7 +473,7 @@ Object.defineProperty(AutoProvider.prototype, 'onmessage', {
...
@@ -474,7 +473,7 @@ Object.defineProperty(AutoProvider.prototype, 'onmessage', {
module
.
exports
=
AutoProvider
;
module
.
exports
=
AutoProvider
;
},{}],
3
:[
function
(
require
,
module
,
exports
){
},{
"./web3"
:
8
}],
3
:[
function
(
require
,
module
,
exports
){
/*
/*
This file is part of ethereum.js.
This file is part of ethereum.js.
...
@@ -807,7 +806,6 @@ module.exports = HttpRpcProvider;
...
@@ -807,7 +806,6 @@ module.exports = HttpRpcProvider;
* @date 2014
* @date 2014
*/
*/
// TODO: is these line is supposed to be here?
var
web3
=
require
(
'./web3'
);
// jshint ignore:line
var
web3
=
require
(
'./web3'
);
// jshint ignore:line
/**
/**
...
...
dist/ethereum.js.map
View file @
86b417e8
This diff is collapsed.
Click to expand it.
dist/ethereum.min.js
View file @
86b417e8
This diff is collapsed.
Click to expand it.
lib/autoprovider.js
View file @
86b417e8
...
@@ -27,10 +27,9 @@
...
@@ -27,10 +27,9 @@
* if it fails, it uses HttpRpcProvider
* if it fails, it uses HttpRpcProvider
*/
*/
// TODO: is these line is supposed to be here?
var
web3
=
require
(
'./web3'
);
// jshint ignore:line
if
(
process
.
env
.
NODE_ENV
!==
'build'
)
{
if
(
process
.
env
.
NODE_ENV
!==
'build'
)
{
var
WebSocket
=
require
(
'ws'
);
// jshint ignore:line
var
WebSocket
=
require
(
'ws'
);
// jshint ignore:line
var
web3
=
require
(
'./web3'
);
// jshint ignore:line
}
}
/**
/**
...
@@ -73,7 +72,7 @@ var AutoProvider = function (userOptions) {
...
@@ -73,7 +72,7 @@ var AutoProvider = function (userOptions) {
self
.
poll
=
self
.
provider
.
poll
.
bind
(
self
.
provider
);
self
.
poll
=
self
.
provider
.
poll
.
bind
(
self
.
provider
);
}
}
self
.
sendQueue
.
forEach
(
function
(
payload
)
{
self
.
sendQueue
.
forEach
(
function
(
payload
)
{
self
.
provider
(
payload
);
self
.
provider
.
send
(
payload
);
});
});
self
.
onmessageQueue
.
forEach
(
function
(
handler
)
{
self
.
onmessageQueue
.
forEach
(
function
(
handler
)
{
self
.
provider
.
onmessage
=
handler
;
self
.
provider
.
onmessage
=
handler
;
...
...
lib/providermanager.js
View file @
86b417e8
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
* @date 2014
* @date 2014
*/
*/
// TODO: is these line is supposed to be here?
var
web3
=
require
(
'./web3'
);
// jshint ignore:line
var
web3
=
require
(
'./web3'
);
// jshint ignore:line
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment