Skip to content

Commit 3eae07c

Browse files
committed
Revert updates back to go-ethereum v1.8.27
1 parent e01bf09 commit 3eae07c

File tree

5 files changed

+6
-21
lines changed

5 files changed

+6
-21
lines changed

core/chain.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,8 @@ func (cc *ChainContext) CalcDifficulty(_ ethcons.ChainReader, _ uint64, _ *ethty
8989
// TODO: Figure out if this needs to be hooked up to any part of the ABCI?
9090
func (cc *ChainContext) Finalize(
9191
_ ethcons.ChainReader, _ *ethtypes.Header, _ *ethstate.StateDB,
92-
_ []*ethtypes.Transaction, _ []*ethtypes.Header) {
93-
}
94-
95-
// FinalizeAndAssemble runs any post-transaction state modifications (e.g. block
96-
// rewards) and assembles the final block.
97-
//
98-
// Note: The block header and state database might be updated to reflect any
99-
// consensus rules that happen at finalization (e.g. block rewards).
100-
// TODO: Figure out if this needs to be hooked up to any part of the ABCI?
101-
func (cc *ChainContext) FinalizeAndAssemble(_ ethcons.ChainReader, _ *ethtypes.Header, _ *ethstate.StateDB, _ []*ethtypes.Transaction,
102-
_ []*ethtypes.Header, _ []*ethtypes.Receipt) (*ethtypes.Block, error) {
92+
_ []*ethtypes.Transaction, _ []*ethtypes.Header, _ []*ethtypes.Receipt,
93+
) (*ethtypes.Block, error) {
10394
return nil, nil
10495
}
10596

go.mod

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,4 @@ require (
4242
mvdan.cc/unparam v0.0.0-20190310220240-1b9ccfa71afe // indirect
4343
)
4444

45-
replace (
46-
github.com/cosmos/cosmos-sdk v0.28.2-0.20190704145406-01d442565807 => ../../chainsafe/cosmos-sdk
47-
github.com/ethereum/go-ethereum v1.8.27 => ../../austinabell/go-ethereum
48-
)
45+
replace github.com/cosmos/cosmos-sdk v0.28.2-0.20190704145406-01d442565807 => ../../chainsafe/cosmos-sdk

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1
363363
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
364364
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
365365
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
366+
github.com/syndtr/goleveldb v0.0.0-20181012014443-6b91fda63f2e h1:91EeXI4y4ShkyzkMqZ7QP/ZTIqwXp3RuDu5WFzxcFAs=
366367
github.com/syndtr/goleveldb v0.0.0-20181012014443-6b91fda63f2e/go.mod h1:Z4AUp2Km+PwemOoO/VB5AOx9XSsIItzFjoJlOSiYmn0=
367368
github.com/syndtr/goleveldb v0.0.0-20181105012736-f9080354173f h1:EEVjSRihF8NIbfyCcErpSpNHEKrY3s8EAwqiPENZZn8=
368369
github.com/syndtr/goleveldb v0.0.0-20181105012736-f9080354173f/go.mod h1:Z4AUp2Km+PwemOoO/VB5AOx9XSsIItzFjoJlOSiYmn0=

importer/importer_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,6 @@ func applyTransaction(config *ethparams.ChainConfig, bc ethcore.ChainContext, au
362362
// Set the receipt logs and create a bloom for filtering
363363
receipt.Logs = statedb.GetLogs(tx.Hash())
364364
receipt.Bloom = ethtypes.CreateBloom(ethtypes.Receipts{receipt})
365-
receipt.BlockHash = statedb.BlockHash()
366-
receipt.BlockNumber = header.Number
367-
receipt.TransactionIndex = uint(statedb.TxIndex())
368365

369366
return receipt, gas, err
370367
}

x/evm/types/statedb.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,10 @@ func (csdb *CommitStateDB) Copy() ethvm.StateDB {
648648

649649
// ForEachStorage iterates over each storage items, all invokes the provided
650650
// callback on each key, value pair .
651-
func (csdb *CommitStateDB) ForEachStorage(addr ethcmn.Address, cb func(key, value ethcmn.Hash) bool) error {
651+
func (csdb *CommitStateDB) ForEachStorage(addr ethcmn.Address, cb func(key, value ethcmn.Hash) bool) {
652652
so := csdb.getStateObject(addr)
653653
if so == nil {
654-
return nil
654+
return
655655
}
656656

657657
store := csdb.ctx.KVStore(csdb.storageKey)
@@ -670,7 +670,6 @@ func (csdb *CommitStateDB) ForEachStorage(addr ethcmn.Address, cb func(key, valu
670670
}
671671

672672
iter.Close()
673-
return nil
674673
}
675674

676675
// GetOrNewStateObject retrieves a state object or create a new state object if

0 commit comments

Comments
 (0)