mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 20:11:21 +00:00
Remove last block method (#785)
This commit is contained in:
parent
79a49e9e44
commit
dbcdae8063
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user