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
e9f1e868
Commit
e9f1e868
authored
Mar 03, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into poc-9
parents
bb152612
827ea434
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
34 deletions
+0
-34
ext_app.go
cmd/mist/ext_app.go
+0
-5
filter.go
ui/qt/filter.go
+0
-29
No files found.
cmd/mist/ext_app.go
View file @
e9f1e868
...
...
@@ -24,7 +24,6 @@ import (
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/ui/qt"
"github.com/ethereum/go-ethereum/xeth"
"github.com/obscuren/qml"
)
...
...
@@ -116,7 +115,3 @@ func (app *ExtApplication) mainLoop() {
}
}
}
func
(
self
*
ExtApplication
)
Watch
(
filterOptions
map
[
string
]
interface
{},
identifier
string
)
{
self
.
filters
[
identifier
]
=
qt
.
NewFilterFromMap
(
filterOptions
,
self
.
eth
)
}
ui/qt/filter.go
View file @
e9f1e868
package
qt
import
(
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/ui"
"github.com/obscuren/qml"
)
func
NewFilterFromMap
(
object
map
[
string
]
interface
{},
eth
core
.
Backend
)
*
core
.
Filter
{
filter
:=
ui
.
NewFilterFromMap
(
object
,
eth
)
if
object
[
"topics"
]
!=
nil
{
filter
.
SetTopics
(
makeTopics
(
object
[
"topics"
]))
}
return
filter
}
func
makeTopics
(
v
interface
{})
(
d
[][]
byte
)
{
if
qList
,
ok
:=
v
.
(
*
qml
.
List
);
ok
{
var
s
[]
string
qList
.
Convert
(
&
s
)
d
=
ui
.
MakeTopics
(
s
)
}
else
if
str
,
ok
:=
v
.
(
string
);
ok
{
d
=
ui
.
MakeTopics
(
str
)
}
return
}
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