Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw109550 committed Nov 3, 2023
1 parent 20e9f6b commit e0232e0
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions core/rawdb/accessors_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ import (
"encoding/binary"
"encoding/json"
"fmt"
"github.com/ledgerwatch/erigon-lib/chain"
"math"
"math/big"
"time"

"github.com/ledgerwatch/erigon-lib/chain"

"github.com/gballet/go-verkle"
common2 "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/ledgerwatch/erigon-lib/common"
Expand Down Expand Up @@ -851,18 +852,6 @@ func ReadReceipts(config *chain.Config, db kv.Tx, block *types.Block, senders []
return receipts
}

func ReadDepositNonces(db kv.Tx, blockNumber uint64) []*uint64 {
receipts := ReadRawReceipts(db, blockNumber)
if receipts == nil {
return nil
}
depositNonces := make([]*uint64, len(receipts))
for i, r := range receipts {
depositNonces[i] = r.DepositNonce
}
return depositNonces
}

// WriteReceipts stores all the transaction receipts belonging to a block.
func WriteReceipts(tx kv.Putter, number uint64, receipts types.Receipts) error {
buf := bytes.NewBuffer(make([]byte, 0, 1024))
Expand Down

0 comments on commit e0232e0

Please sign in to comment.