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
9afda6ab
Commit
9afda6ab
authored
Jul 25, 2015
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: 5 ether block reward
parent
5001f778
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
chain_makers_test.go
core/chain_makers_test.go
+1
-1
fees.go
core/fees.go
+1
-1
block_test.go
tests/block_test.go
+8
-0
No files found.
core/chain_makers_test.go
View file @
9afda6ab
...
...
@@ -90,5 +90,5 @@ func ExampleGenerateChain() {
// last block: #5
// balance of addr1: 989000
// balance of addr2: 10000
// balance of addr3:
590625
0000000001000
// balance of addr3:
1968750
0000000001000
}
core/fees.go
View file @
9afda6ab
...
...
@@ -20,4 +20,4 @@ import (
"math/big"
)
var
BlockReward
*
big
.
Int
=
big
.
NewInt
(
1.
5e+18
)
var
BlockReward
*
big
.
Int
=
big
.
NewInt
(
5e+18
)
tests/block_test.go
View file @
9afda6ab
...
...
@@ -17,10 +17,18 @@
package
tests
import
(
"math/big"
"path/filepath"
"testing"
"github.com/ethereum/go-ethereum/core"
)
func
init
()
{
// XXX remove me when block tests have been updated
core
.
BlockReward
=
big
.
NewInt
(
1.5e+18
)
}
func
TestBcValidBlockTests
(
t
*
testing
.
T
)
{
err
:=
RunBlockTest
(
filepath
.
Join
(
blockTestDir
,
"bcValidBlockTest.json"
),
BlockSkipTests
)
if
err
!=
nil
{
...
...
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