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
fbd53f0e
Commit
fbd53f0e
authored
Mar 05, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed block manager to state manager
parent
f7fb5b90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
gui.go
ui/gui.go
+1
-1
library.go
ui/library.go
+2
-2
No files found.
ui/gui.go
View file @
fbd53f0e
...
...
@@ -57,7 +57,7 @@ type Gui struct {
// Create GUI, but doesn't start it
func
New
(
ethereum
*
eth
.
Ethereum
)
*
Gui
{
lib
:=
&
EthLib
{
block
Manager
:
ethereum
.
StateManager
(),
blockChain
:
ethereum
.
BlockChain
(),
txPool
:
ethereum
.
TxPool
()}
lib
:=
&
EthLib
{
state
Manager
:
ethereum
.
StateManager
(),
blockChain
:
ethereum
.
BlockChain
(),
txPool
:
ethereum
.
TxPool
()}
db
,
err
:=
ethdb
.
NewLDBDatabase
(
"tx_database"
)
if
err
!=
nil
{
panic
(
err
)
...
...
ui/library.go
View file @
fbd53f0e
...
...
@@ -9,7 +9,7 @@ import (
)
type
EthLib
struct
{
blockManager
*
ethchain
.
Block
Manager
stateManager
*
ethchain
.
State
Manager
blockChain
*
ethchain
.
BlockChain
txPool
*
ethchain
.
TxPool
}
...
...
@@ -32,7 +32,7 @@ func (lib *EthLib) CreateTx(receiver, a, data string) string {
amount
:=
ethutil
.
Big
(
a
)
code
:=
ethchain
.
Compile
(
strings
.
Split
(
data
,
"
\n
"
))
tx
:=
ethchain
.
NewTransaction
(
hash
,
amount
,
code
)
tx
.
Nonce
=
lib
.
block
Manager
.
GetAddrState
(
keyRing
.
Get
(
1
)
.
Bytes
())
.
Nonce
tx
.
Nonce
=
lib
.
state
Manager
.
GetAddrState
(
keyRing
.
Get
(
1
)
.
Bytes
())
.
Nonce
tx
.
Sign
(
keyRing
.
Get
(
0
)
.
Bytes
())
...
...
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