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
bde3ff16
Commit
bde3ff16
authored
Feb 13, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
76fa75b3
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
893 deletions
+17
-893
coin.html
cmd/mist/assets/examples/coin.html
+6
-0
main.qml
cmd/mist/assets/qml/main.qml
+1
-868
block_processor.go
core/block_processor.go
+0
-13
manager.go
core/manager.go
+0
-1
backend.go
eth/backend.go
+10
-11
No files found.
cmd/mist/assets/examples/coin.html
View file @
bde3ff16
...
@@ -79,6 +79,12 @@
...
@@ -79,6 +79,12 @@
contract
.
received
({
from
:
eth
.
coinbase
}).
changed
(
function
()
{
contract
.
received
({
from
:
eth
.
coinbase
}).
changed
(
function
()
{
refresh
();
refresh
();
});
});
var
ev
=
contract
.
SingleTransact
({})
ev
.
watch
(
function
(
log
)
{
someElement
.
innerHTML
+=
"tnaheousnthaoeu"
;
});
eth
.
watch
(
'chain'
).
changed
(
function
()
{
eth
.
watch
(
'chain'
).
changed
(
function
()
{
refresh
();
refresh
();
});
});
...
...
cmd/mist/assets/qml/main.qml
View file @
bde3ff16
This diff is collapsed.
Click to expand it.
core/block_processor.go
View file @
bde3ff16
...
@@ -23,19 +23,6 @@ type PendingBlockEvent struct {
...
@@ -23,19 +23,6 @@ type PendingBlockEvent struct {
var
statelogger
=
logger
.
NewLogger
(
"BLOCK"
)
var
statelogger
=
logger
.
NewLogger
(
"BLOCK"
)
type
EthManager
interface
{
BlockProcessor
()
*
BlockProcessor
ChainManager
()
*
ChainManager
TxPool
()
*
TxPool
PeerCount
()
int
IsMining
()
bool
IsListening
()
bool
Peers
()
[]
*
p2p
.
Peer
KeyManager
()
*
crypto
.
KeyManager
Db
()
ethutil
.
Database
EventMux
()
*
event
.
TypeMux
}
type
BlockProcessor
struct
{
type
BlockProcessor
struct
{
db
ethutil
.
Database
db
ethutil
.
Database
// Mutex for locking the block processor. Blocks can only be handled one at a time
// Mutex for locking the block processor. Blocks can only be handled one at a time
...
...
core/manager.go
View file @
bde3ff16
...
@@ -16,7 +16,6 @@ type EthManager interface {
...
@@ -16,7 +16,6 @@ type EthManager interface {
IsListening
()
bool
IsListening
()
bool
Peers
()
[]
*
p2p
.
Peer
Peers
()
[]
*
p2p
.
Peer
KeyManager
()
*
crypto
.
KeyManager
KeyManager
()
*
crypto
.
KeyManager
ClientIdentity
()
p2p
.
ClientIdentity
Db
()
ethutil
.
Database
Db
()
ethutil
.
Database
EventMux
()
*
event
.
TypeMux
EventMux
()
*
event
.
TypeMux
}
}
eth/backend.go
View file @
bde3ff16
...
@@ -20,14 +20,16 @@ import (
...
@@ -20,14 +20,16 @@ import (
)
)
var
logger
=
ethlogger
.
NewLogger
(
"SERV"
)
var
logger
=
ethlogger
.
NewLogger
(
"SERV"
)
var
jsonlogger
=
ethlogger
.
NewJsonLogger
()
type
Config
struct
{
type
Config
struct
{
Name
string
Name
string
KeyStore
string
KeyStore
string
DataDir
string
DataDir
string
LogFile
string
LogFile
string
LogLevel
int
LogLevel
int
KeyRing
string
KeyRing
string
LogFormat
string
MaxPeers
int
MaxPeers
int
Port
string
Port
string
...
@@ -47,9 +49,6 @@ type Config struct {
...
@@ -47,9 +49,6 @@ type Config struct {
KeyManager
*
crypto
.
KeyManager
KeyManager
*
crypto
.
KeyManager
}
}
var
logger
=
ethlogger
.
NewLogger
(
"SERV"
)
var
jsonlogger
=
ethlogger
.
NewJsonLogger
()
func
(
cfg
*
Config
)
parseBootNodes
()
[]
*
discover
.
Node
{
func
(
cfg
*
Config
)
parseBootNodes
()
[]
*
discover
.
Node
{
var
ns
[]
*
discover
.
Node
var
ns
[]
*
discover
.
Node
for
_
,
url
:=
range
strings
.
Split
(
cfg
.
BootNodes
,
" "
)
{
for
_
,
url
:=
range
strings
.
Split
(
cfg
.
BootNodes
,
" "
)
{
...
@@ -240,10 +239,10 @@ func (s *Ethereum) Coinbase() []byte {
...
@@ -240,10 +239,10 @@ func (s *Ethereum) Coinbase() []byte {
// Start the ethereum
// Start the ethereum
func
(
s
*
Ethereum
)
Start
()
error
{
func
(
s
*
Ethereum
)
Start
()
error
{
jsonlogger
.
LogJson
(
&
ethlogger
.
LogStarting
{
jsonlogger
.
LogJson
(
&
ethlogger
.
LogStarting
{
ClientString
:
s
.
ClientIdentity
()
.
String
()
,
ClientString
:
s
.
net
.
Name
,
Coinbase
:
ethutil
.
Bytes2Hex
(
s
.
KeyManager
()
.
Address
()),
Coinbase
:
ethutil
.
Bytes2Hex
(
s
.
KeyManager
()
.
Address
()),
ProtocolVersion
:
ProtocolVersion
,
ProtocolVersion
:
ProtocolVersion
,
LogEvent
:
ethlogger
.
LogEvent
{
Guid
:
ethutil
.
Bytes2Hex
(
s
.
ClientIdentity
()
.
Pubkey
(
))},
LogEvent
:
ethlogger
.
LogEvent
{
Guid
:
ethutil
.
Bytes2Hex
(
crypto
.
FromECDSAPub
(
&
s
.
net
.
PrivateKey
.
PublicKey
))},
})
})
err
:=
s
.
net
.
Start
()
err
:=
s
.
net
.
Start
()
...
...
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