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
ba1f4bbe
Commit
ba1f4bbe
authored
Feb 28, 2015
by
Matthew Wampler-Doty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exposing stuff for ethash
parent
3820a652
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
block_processor.go
core/block_processor.go
+3
-0
chain_manager_test.go
core/chain_manager_test.go
+0
-2
block.go
pow/block.go
+2
-0
No files found.
core/block_processor.go
View file @
ba1f4bbe
...
...
@@ -105,6 +105,9 @@ func (self *BlockProcessor) ApplyTransaction(coinbase *state.StateObject, stated
return
receipt
,
txGas
,
err
}
func
(
self
*
BlockProcessor
)
ChainManager
()
*
ChainManager
{
return
self
.
bc
}
func
(
self
*
BlockProcessor
)
ApplyTransactions
(
coinbase
*
state
.
StateObject
,
statedb
*
state
.
StateDB
,
block
*
types
.
Block
,
txs
types
.
Transactions
,
transientProcess
bool
)
(
types
.
Receipts
,
types
.
Transactions
,
types
.
Transactions
,
types
.
Transactions
,
error
)
{
var
(
...
...
core/chain_manager_test.go
View file @
ba1f4bbe
...
...
@@ -14,9 +14,7 @@ import (
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/pow"
"github.com/ethereum/go-ethereum/rlp"
"github.com/ethereum/go-ethereum/state"
)
func
init
()
{
...
...
pow/block.go
View file @
ba1f4bbe
...
...
@@ -7,4 +7,6 @@ type Block interface {
HashNoNonce
()
[]
byte
Nonce
()
[]
byte
Number
()
*
big
.
Int
MixDigest
()
[]
byte
SeedHash
()
[]
byte
}
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