Remove last block method (#785)

This commit is contained in:
Alex Sharov 2020-07-27 15:16:49 +07:00 committed by GitHub
parent 79a49e9e44
commit dbcdae8063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,6 @@ func NewAPI(db ethdb.KV, dbReader ethdb.Getter, chainContext core.ChainContext)
}
}
func (api *APIImpl) BlockNumber(ctx context.Context) (hexutil.Uint64, error) {
execution, _, err := stages.GetStageProgress(api.dbReader, stages.Execution)
if err != nil {
@ -292,7 +291,6 @@ func (api *APIImpl) GetBlockByNumber(ctx context.Context, number rpc.BlockNumber
return response, err
}
// rpcMarshalBlock reimplementation of ethapi.rpcMarshalBlock
func (api *APIImpl) rpcMarshalBlock(b *types.Block, inclTx bool, fullTx bool, additional map[string]interface{}) (map[string]interface{}, error) {
fields, err := ethapi.RPCMarshalBlock(b, inclTx, fullTx)