-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check that mainnet test doesn't call the internet #76
base: 2024/12/gettarget
Are you sure you want to change the base?
Conversation
cc @vasild The ARM test runs in qemu on my x86_64 machine, perhaps that's related? |
0f0cec9
to
8502e6e
Compare
b57a5ce
to
815b2f0
Compare
I pushed a rebased version of bitcoin#31583 to account for the merged tests in bitcoin#31646. |
292ff86
to
bb8a470
Compare
Split CheckProofOfWorkImpl() to introduce a helper function DeriveTarget() which converts the nBits value to the target. The function takes pow_limit as an argument so later commits can avoid having to pass ChainstateManager through the call stack. Co-authored-by: Ryan Ofsky <[email protected]>
The next commit needs pow.cpp in rpc/util.cpp.
Also expands nBits test coverage.
Obtain the difficulty / target for the next block without having to call getblocktemplate.
For blocks 1 through 15 the script_BIP34_coinbase_height appends OP_1 to comply with BIP34 and avoid bad-cb-length. This is inconsistent with BlockAssembler::CreateNewBlock() which adds OP_0 instead. The utxo_total_supply fuzzer and MinerTestingSetup::Block also use OP_0. Changing it is required to import the test vectors in the next commit. It also ensures the test vectors can be regenerated using the CPU miner at https://github.com/pooler/cpuminer without patches (it uses OP_0). The same helper is used by the signet miner, so this will impact newly bootstrapped signets.
Co-Authored-By: tdb3 <[email protected]>
bb8a470
to
757e4ff
Compare
Before the tests:
and that VM is not flagged as --- i/ci/test/00_setup_env_arm.sh
+++ w/ci/test/00_setup_env_arm.sh
@@ -15,6 +15,8 @@ export USE_BUSY_BOX=true
export RUN_UNIT_TESTS=true
export RUN_FUNCTIONAL_TESTS=false
export GOAL="install"
# -Wno-psabi is to disable ABI warnings: "note: parameter passing for argument of type ... changed in GCC 7.1"
# This could be removed once the ABI change warning does not show up by default
export BITCOIN_CONFIG="-DREDUCE_EXPORTS=ON -DCMAKE_CXX_FLAGS='-Wno-psabi -Wno-error=maybe-uninitialized'"
+# Can't run tcpdump: tcpdump: eth0: SIOCETHTOOL(ETHTOOL_GET_TS_INFO) ioctl failed: Inappropriate ioctl for device
+export CI_TCPDUMP_OK_TO_FAIL=1 but only in this environment (qemu), not on |
I'll try setting https://cirrus-ci.com/task/6101745434099712 Update: that worked. |
712e3ff
to
39eabfa
Compare
d4fe21c
to
a4df123
Compare
This tests the combination of bitcoin#31583 and bitcoin#31349.