Skip to content

feat(txpool): calculate consumption when committing a new block #2919

feat(txpool): calculate consumption when committing a new block

feat(txpool): calculate consumption when committing a new block #2919

Workflow file for this run

name: Deadlock and data race detection
on:
pull_request:
branches:
- main
jobs:
data-race:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.23.2'
- name: Checkout code
uses: actions/checkout@v4
- name: Test with data race detection
run: make test_race
- name: Replace sync.RWMutex with deadlock.RWMutex
run: find . -type f -name "*.go" -not -path '*/\.*' -exec sed -i -- 's/\t"sync"/\tsync "github.com\/sasha-s\/go-deadlock"/g' {} +
- name: Adding go-deadlock package
run: go get github.com/sasha-s/go-deadlock
- name: Test with deadlock detection
run: make test