good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
b9db5b37
Commit
b9db5b37
authored
Nov 26, 2015
by
Jeffrey Wilcke
Browse files
Options
Downloads
Plain Diff
Merge pull request #2001 from obscuren/fixes
cmd, crypto: updated web3
parents
168d0e9e
b1e01434
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmd/geth/js.go
+2
-2
2 additions, 2 deletions
cmd/geth/js.go
jsre/ethereum_js.go
+6796
-1516
6796 additions, 1516 deletions
jsre/ethereum_js.go
xeth/xeth.go
+3
-1
3 additions, 1 deletion
xeth/xeth.go
with
6801 additions
and
1519 deletions
cmd/geth/js.go
+
2
−
2
View file @
b9db5b37
...
@@ -299,12 +299,12 @@ func (js *jsre) apiBindings(f xeth.Frontend) error {
...
@@ -299,12 +299,12 @@ func (js *jsre) apiBindings(f xeth.Frontend) error {
utils
.
Fatalf
(
"Error loading web3.js: %v"
,
err
)
utils
.
Fatalf
(
"Error loading web3.js: %v"
,
err
)
}
}
_
,
err
=
js
.
re
.
Run
(
"var
w
eb3 = require('web3');"
)
_
,
err
=
js
.
re
.
Run
(
"var
W
eb3 = require('web3');"
)
if
err
!=
nil
{
if
err
!=
nil
{
utils
.
Fatalf
(
"Error requiring web3: %v"
,
err
)
utils
.
Fatalf
(
"Error requiring web3: %v"
,
err
)
}
}
_
,
err
=
js
.
re
.
Run
(
"
web3.setProvider
(jeth)"
)
_
,
err
=
js
.
re
.
Run
(
"
var web3 = new Web3
(jeth)
;
"
)
if
err
!=
nil
{
if
err
!=
nil
{
utils
.
Fatalf
(
"Error setting web3 provider: %v"
,
err
)
utils
.
Fatalf
(
"Error setting web3 provider: %v"
,
err
)
}
}
...
...
This diff is collapsed.
Click to expand it.
jsre/ethereum_js.go
+
6796
−
1516
View file @
b9db5b37
This diff is collapsed.
Click to expand it.
xeth/xeth.go
+
3
−
1
View file @
b9db5b37
...
@@ -644,8 +644,10 @@ func (p *XEth) NewWhisperFilter(to, from string, topics [][]string) int {
...
@@ -644,8 +644,10 @@ func (p *XEth) NewWhisperFilter(to, from string, topics [][]string) int {
callback
:=
func
(
msg
WhisperMessage
)
{
callback
:=
func
(
msg
WhisperMessage
)
{
p
.
messagesMu
.
RLock
()
// Only read lock to the filter pool
p
.
messagesMu
.
RLock
()
// Only read lock to the filter pool
defer
p
.
messagesMu
.
RUnlock
()
defer
p
.
messagesMu
.
RUnlock
()
if
p
.
messages
[
id
]
!=
nil
{
p
.
messages
[
id
]
.
insert
(
msg
)
p
.
messages
[
id
]
.
insert
(
msg
)
}
}
}
// Initialize the core whisper filter and wrap into xeth
// Initialize the core whisper filter and wrap into xeth
id
=
p
.
Whisper
()
.
Watch
(
to
,
from
,
topics
,
callback
)
id
=
p
.
Whisper
()
.
Watch
(
to
,
from
,
topics
,
callback
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment