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
0b6b6b52
Commit
0b6b6b52
authored
Sep 07, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contract creation address are empty again
parent
250d40bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
transaction.go
ethchain/transaction.go
+3
-2
transaction_pool.go
ethchain/transaction_pool.go
+0
-2
No files found.
ethchain/transaction.go
View file @
0b6b6b52
...
...
@@ -13,7 +13,8 @@ import (
var
ContractAddr
=
[]
byte
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}
func
IsContractAddr
(
addr
[]
byte
)
bool
{
return
bytes
.
Compare
(
addr
,
ContractAddr
)
==
0
return
len
(
addr
)
==
0
//return bytes.Compare(addr, ContractAddr) == 0
}
type
Transaction
struct
{
...
...
@@ -31,7 +32,7 @@ type Transaction struct {
}
func
NewContractCreationTx
(
value
,
gas
,
gasPrice
*
big
.
Int
,
script
[]
byte
)
*
Transaction
{
return
&
Transaction
{
Recipient
:
ContractAddr
,
Value
:
value
,
Gas
:
gas
,
GasPrice
:
gasPrice
,
Data
:
script
,
contractCreation
:
true
}
return
&
Transaction
{
Recipient
:
nil
,
Value
:
value
,
Gas
:
gas
,
GasPrice
:
gasPrice
,
Data
:
script
,
contractCreation
:
true
}
}
func
NewTransactionMessage
(
to
[]
byte
,
value
,
gas
,
gasPrice
*
big
.
Int
,
data
[]
byte
)
*
Transaction
{
...
...
ethchain/transaction_pool.go
View file @
0b6b6b52
...
...
@@ -72,8 +72,6 @@ type TxPool struct {
func
NewTxPool
(
ethereum
EthManager
)
*
TxPool
{
return
&
TxPool
{
//server: s,
mutex
:
sync
.
Mutex
{},
pool
:
list
.
New
(),
queueChan
:
make
(
chan
*
Transaction
,
txPoolQueueSize
),
quit
:
make
(
chan
bool
),
...
...
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