fix: typo

This commit is contained in:
Jaynti Kanani 2020-10-29 20:32:15 +05:30
parent 0f0032e652
commit f51034e2a8
No known key found for this signature in database
GPG key ID: 4396982C976BAE5E
2 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -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
}