Skip to content

Commit

Permalink
Merge pull request #125 from getamis/update-1.8.21
Browse files Browse the repository at this point in the history
Update 1.8.21
  • Loading branch information
markya0616 authored Jan 16, 2019
2 parents 80b89ca + 2546f0f commit b3e0c3f
Show file tree
Hide file tree
Showing 193 changed files with 4,305 additions and 7,592 deletions.
10 changes: 5 additions & 5 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
[[override]]
name = "github.com/ethereum/go-ethereum"
source = "github.com/getamis/go-ethereum"
branch = "indexer-1.8.19"
branch = "indexer-1.8.21"

[[constraint]]
name = "github.com/getamis/sirius"
Expand Down Expand Up @@ -95,3 +95,7 @@
[[constraint]]
branch = "master"
name = "github.com/jmoiron/sqlx"

[[constraint]]
revision = "ff983b9c42bc9fbf91556e191cc8efb585c16908"
name = "golang.org/x/crypto"
51 changes: 25 additions & 26 deletions common/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ import (
)

func TestAccumulateRewards(t *testing.T) {
t.Skip("skip this test because of constantinople postpone")
byzantiumBlock := big.NewInt(5862127)
constantinopleBlock := big.NewInt(7162127)
// constantinopleBlock := big.NewInt(7162127)
tests := []struct {
description string
uncleHeaders []*types.Header
Expand Down Expand Up @@ -64,30 +63,30 @@ func TestAccumulateRewards(t *testing.T) {
unclesReward: []*big.Int{big.NewInt(2625000000000000000), big.NewInt(2250000000000000000)},
},

{
description: "no uncles on constantinople",
uncleHeaders: []*types.Header{},
blockNum: constantinopleBlock,
uncleInclusionReward: big.NewInt(0),
minerBaseReward: ethash.ConstantinopleBlockReward,
unclesReward: []*big.Int{},
},
{
description: "two uncles in same block number on constantinople",
uncleHeaders: []*types.Header{{Number: big.NewInt(constantinopleBlock.Int64() - 1), Coinbase: common.HexToAddress("uncle1")}, {Number: big.NewInt(constantinopleBlock.Int64() - 1), Coinbase: common.HexToAddress("uncle2")}},
blockNum: constantinopleBlock,
uncleInclusionReward: big.NewInt(125000000000000000),
minerBaseReward: ethash.ConstantinopleBlockReward,
unclesReward: []*big.Int{big.NewInt(1750000000000000000), big.NewInt(1750000000000000000)},
},
{
description: "two uncles in different block number on constantinople",
uncleHeaders: []*types.Header{{Number: big.NewInt(constantinopleBlock.Int64() - 1), Coinbase: common.HexToAddress("uncle1")}, {Number: big.NewInt(constantinopleBlock.Int64() - 2), Coinbase: common.HexToAddress("uncle2")}},
blockNum: constantinopleBlock,
uncleInclusionReward: big.NewInt(125000000000000000),
minerBaseReward: ethash.ConstantinopleBlockReward,
unclesReward: []*big.Int{big.NewInt(1750000000000000000), big.NewInt(1500000000000000000)},
},
// {
// description: "no uncles on constantinople",
// uncleHeaders: []*types.Header{},
// blockNum: constantinopleBlock,
// uncleInclusionReward: big.NewInt(0),
// minerBaseReward: ethash.ConstantinopleBlockReward,
// unclesReward: []*big.Int{},
// },
// {
// description: "two uncles in same block number on constantinople",
// uncleHeaders: []*types.Header{{Number: big.NewInt(constantinopleBlock.Int64() - 1), Coinbase: common.HexToAddress("uncle1")}, {Number: big.NewInt(constantinopleBlock.Int64() - 1), Coinbase: common.HexToAddress("uncle2")}},
// blockNum: constantinopleBlock,
// uncleInclusionReward: big.NewInt(125000000000000000),
// minerBaseReward: ethash.ConstantinopleBlockReward,
// unclesReward: []*big.Int{big.NewInt(1750000000000000000), big.NewInt(1750000000000000000)},
// },
// {
// description: "two uncles in different block number on constantinople",
// uncleHeaders: []*types.Header{{Number: big.NewInt(constantinopleBlock.Int64() - 1), Coinbase: common.HexToAddress("uncle1")}, {Number: big.NewInt(constantinopleBlock.Int64() - 2), Coinbase: common.HexToAddress("uncle2")}},
// blockNum: constantinopleBlock,
// uncleInclusionReward: big.NewInt(125000000000000000),
// minerBaseReward: ethash.ConstantinopleBlockReward,
// unclesReward: []*big.Int{big.NewInt(1750000000000000000), big.NewInt(1500000000000000000)},
// },
}
for _, tt := range tests {
t.Run(tt.description, func(t *testing.T) {
Expand Down
24 changes: 1 addition & 23 deletions vendor/github.com/ethereum/go-ethereum/.github/CODEOWNERS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/ethereum/go-ethereum/.github/stale.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/ethereum/go-ethereum/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions vendor/github.com/ethereum/go-ethereum/accounts/abi/abi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b3e0c3f

Please sign in to comment.