Skip to content

Commit

Permalink
changes missing
Browse files Browse the repository at this point in the history
  • Loading branch information
freemanzMrojo committed Dec 4, 2024
1 parent d9fe95f commit ac72402
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chain/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ type Repository struct {

caches struct {
summaries *cache
txs *cache
receipts *cache
}
}

Expand Down Expand Up @@ -353,7 +355,7 @@ func (r *Repository) getReceipt(key []byte) (*tx.Receipt, error) {
if err != nil {
return nil, err
}
return &receipt, nil
return cached.(*tx.Receipt), nil
}

func loadReceipt(r kv.Getter, key []byte) (*tx.Receipt, error) {
Expand Down

0 comments on commit ac72402

Please sign in to comment.