Skip to content

Commit

Permalink
Remove benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Sep 20, 2024
1 parent b31d2d9 commit 5836038
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
2 changes: 1 addition & 1 deletion core/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func Post0132Hash(b *Block, stateDiff *StateDiff) (*felt.Felt, *BlockCommitments
eCommitment, eErr = eventCommitmentPoseidon(b.Receipts)
})
wg.Go(func() {
rCommitment, rErr = ReceiptCommitment(b.Receipts)
rCommitment, rErr = receiptCommitment(b.Receipts)
})

wg.Go(func() {
Expand Down
2 changes: 1 addition & 1 deletion core/receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func messagesSentHash(messages []*L2ToL1Message) *felt.Felt {
return crypto.PoseidonArray(chain...)
}

func ReceiptCommitment(receipts []*TransactionReceipt) (*felt.Felt, error) {
func receiptCommitment(receipts []*TransactionReceipt) (*felt.Felt, error) {
var commitment *felt.Felt
return commitment, trie.RunOnTempTriePoseidon(commitmentTrieHeight, func(trie *trie.Trie) error {
numWorkers := min(runtime.GOMAXPROCS(0), len(receipts))
Expand Down
32 changes: 0 additions & 32 deletions core/receipt_pkg_test.go

This file was deleted.

0 comments on commit 5836038

Please sign in to comment.