mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
fix: typo
This commit is contained in:
parent
0f0032e652
commit
f51034e2a8
2 changed files with 3 additions and 5 deletions
|
|
@ -43,7 +43,7 @@ func HasBorReceipt(db ethdb.Reader, hash common.Hash, number uint64) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
// ReadBorReceiptRLP retrieves all the transaction receipts belonging to a block in RLP encoding.
|
||||
// ReadBorReceiptRLP retrieves the block receipt belonging to a block in RLP encoding.
|
||||
func ReadBorReceiptRLP(db ethdb.Reader, hash common.Hash, number uint64) rlp.RawValue {
|
||||
// First try to look up the data in ancient database. Extra hash
|
||||
// comparison is necessary since ancient database only maintains
|
||||
|
|
|
|||
|
|
@ -21,10 +21,8 @@ func (ec *Client) GetRootHash(ctx context.Context, startBlockNumber uint64, endB
|
|||
func (ec *Client) GetBorBlockReceipt(ctx context.Context, hash common.Hash) (*types.Receipt, error) {
|
||||
var r *types.Receipt
|
||||
err := ec.c.CallContext(ctx, &r, "eth_getBorBlockReceipt", hash)
|
||||
if err == nil {
|
||||
if r == nil {
|
||||
return nil, ethereum.NotFound
|
||||
}
|
||||
if err == nil && r == nil {
|
||||
return nil, ethereum.NotFound
|
||||
}
|
||||
return r, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue