forked from cerc-io/laconicd-deprecated
Updating ethereum version from fork (#68)
* syncing with updated ethereum version with local versions * Revert updates back to go-ethereum v1.8.27 * Fixed chain-test change from undoing recent go-ethereum changes * Fixes linting issues * Remove unused interface implementations * Updates cosmos-sdk version from relative dependency and updates auxiliary changes * Upgrading ethereum version back to most recent since 1.9 release <:) * syncing with updated ethereum version with local versions * Revert updates back to go-ethereum v1.8.27 * Fixed chain-test change from undoing recent go-ethereum changes * Fixes linting issues * Remove unused interface implementations * Updates cosmos-sdk version from relative dependency and updates auxiliary changes * Upgrading ethereum version back to most recent since 1.9 release <:) * Added documentation for cloned functions
This commit is contained in:
+12
-3
@@ -88,9 +88,18 @@ func (cc *ChainContext) CalcDifficulty(_ ethcons.ChainReader, _ uint64, _ *ethty
|
||||
//
|
||||
// TODO: Figure out if this needs to be hooked up to any part of the ABCI?
|
||||
func (cc *ChainContext) Finalize(
|
||||
_ ethcons.ChainReader, _ *ethtypes.Header, _ ethstate.StateDB,
|
||||
_ []*ethtypes.Transaction, _ []*ethtypes.Header, _ []*ethtypes.Receipt,
|
||||
) (*ethtypes.Block, error) {
|
||||
_ ethcons.ChainReader, _ *ethtypes.Header, _ *ethstate.StateDB,
|
||||
_ []*ethtypes.Transaction, _ []*ethtypes.Header) {
|
||||
}
|
||||
|
||||
// FinalizeAndAssemble runs any post-transaction state modifications (e.g. block
|
||||
// rewards) and assembles the final block.
|
||||
//
|
||||
// Note: The block header and state database might be updated to reflect any
|
||||
// consensus rules that happen at finalization (e.g. block rewards).
|
||||
// TODO: Figure out if this needs to be hooked up to any part of the ABCI?
|
||||
func (cc *ChainContext) FinalizeAndAssemble(_ ethcons.ChainReader, _ *ethtypes.Header, _ *ethstate.StateDB, _ []*ethtypes.Transaction,
|
||||
_ []*ethtypes.Header, _ []*ethtypes.Receipt) (*ethtypes.Block, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
||||
+1
-3
@@ -71,9 +71,7 @@ func TestChainContextCalcDifficulty(t *testing.T) {
|
||||
func TestChainContextFinalize(t *testing.T) {
|
||||
cc := NewChainContext()
|
||||
|
||||
block, err := cc.Finalize(nil, nil, nil, nil, nil, nil)
|
||||
require.Nil(t, err)
|
||||
require.Nil(t, block)
|
||||
cc.Finalize(nil, nil, nil, nil, nil)
|
||||
}
|
||||
|
||||
func TestChainContextPrepare(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user