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
77badc8c
Commit
77badc8c
authored
Oct 18, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to reflect the Filter changes in eth-go
parent
e57989c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
types.go
javascript/types.go
+2
-2
ext_app.go
mist/ext_app.go
+3
-2
ui_lib.go
mist/ui_lib.go
+2
-1
No files found.
javascript/types.go
View file @
77badc8c
...
...
@@ -4,10 +4,10 @@ import (
"fmt"
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethpipe"
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ui"
"github.com/obscuren/otto"
)
...
...
@@ -128,7 +128,7 @@ func (self *JSEthereum) toVal(v interface{}) otto.Value {
}
func
(
self
*
JSEthereum
)
Messages
(
object
map
[
string
]
interface
{})
otto
.
Value
{
filter
:=
ethchain
.
NewFilterFromMap
(
object
,
self
.
ethereum
)
filter
:=
ui
.
NewFilterFromMap
(
object
,
self
.
ethereum
)
messages
:=
filter
.
Find
()
var
msgs
[]
JSMessage
...
...
mist/ext_app.go
View file @
77badc8c
...
...
@@ -7,6 +7,7 @@ import (
"github.com/ethereum/eth-go/ethpipe"
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/eth-go/event"
"github.com/ethereum/eth-go/ui/qt"
"github.com/ethereum/go-ethereum/javascript"
"gopkg.in/qml.v1"
)
...
...
@@ -103,11 +104,11 @@ func (app *ExtApplication) mainLoop() {
}
func
(
self
*
ExtApplication
)
Watch
(
filterOptions
map
[
string
]
interface
{},
identifier
string
)
{
self
.
filters
[
identifier
]
=
ethchain
.
NewFilterFromMap
(
filterOptions
,
self
.
eth
)
self
.
filters
[
identifier
]
=
qt
.
NewFilterFromMap
(
filterOptions
,
self
.
eth
)
}
func
(
self
*
ExtApplication
)
GetMessages
(
object
map
[
string
]
interface
{})
string
{
filter
:=
ethchain
.
NewFilterFromMap
(
object
,
self
.
eth
)
filter
:=
qt
.
NewFilterFromMap
(
object
,
self
.
eth
)
messages
:=
filter
.
Find
()
var
msgs
[]
javascript
.
JSMessage
...
...
mist/ui_lib.go
View file @
77badc8c
...
...
@@ -13,6 +13,7 @@ import (
"github.com/ethereum/eth-go/ethpipe"
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ui/qt"
"github.com/ethereum/go-ethereum/javascript"
"gopkg.in/qml.v1"
)
...
...
@@ -194,7 +195,7 @@ func (self *UiLib) StartDebugger() {
}
func
(
self
*
UiLib
)
NewFilter
(
object
map
[
string
]
interface
{})
(
id
int
)
{
filter
:=
ethchain
.
NewFilterFromMap
(
object
,
self
.
eth
)
filter
:=
qt
.
NewFilterFromMap
(
object
,
self
.
eth
)
filter
.
MessageCallback
=
func
(
messages
ethstate
.
Messages
)
{
self
.
win
.
Root
()
.
Call
(
"invokeFilterCallback"
,
ethpipe
.
ToJSMessages
(
messages
),
id
)
}
...
...
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