Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches: master
pull_request:

jobs:
benchmark_base_branch:
name: Bencher
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bencherdev/bencher@main
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install hyperfine clang-15 ccache build-essential libtool autotools-dev automake pkg-config bsdmainutils python3-zmq libevent-dev libboost-dev libsqlite3-dev libdb++-dev systemtap-sdt-dev libminiupnpc-dev libnatpmp-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qtwayland5 libqrencode-dev -y
- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
create-symlink: true
- name: Build bitcoind
run: |
./autogen.sh && CC=clang-15 CXX=clang++-15 ./configure --disable-tests --disable-wallet --without-gui --disable-bench --disable-fuzz-binary && make clean && make -j $(nproc) -C src bitcoind
- name: Bencher
run: |
bencher run \
--project core-test \
--token '${{ secrets.BENCHER_API_TOKEN }}' \
--branch master \
--testbed ubuntu-latest \
--adapter shell_hyperfine \
--err \
--file results.json \
"hyperfine --runs 2 --export-json results.json --time-unit second './src/bitcoind --stopatheight=5000'"
297 changes: 0 additions & 297 deletions .github/workflows/ci.yml

This file was deleted.

1 change: 1 addition & 0 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3839,6 +3839,7 @@ static bool CheckWitnessMalleation(const CBlock& block, bool expect_witness_comm
bool CheckBlock(const CBlock& block, BlockValidationState& state, const Consensus::Params& consensusParams, bool fCheckPOW, bool fCheckMerkleRoot)
{
// These are checks that are independent of context.
UninterruptibleSleep(std::chrono::milliseconds{50});

if (block.fChecked)
return true;
Expand Down