Page MenuHomePhabricator

[avalanche] Add a mechanism to delegate proofs
ClosedPublic

Authored by deadalnix on Dec 4 2020, 01:08.

Details

Reviewers
jasonbcox
Group Reviewers
Restricted Project
Commits
rABC94d26b8cc9bc: [avalanche] Add a mechanism to delegate proofs
Summary

This is pretty much self explainatory. One does not want to spread its private keys around, so a mechanism to delagate a proof to any public key of the prover's chosing is necessary.

Depends on D8599

Test Plan

Added unit test.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Tail of the build log:

[388/428] bitcoin: testing getarg_tests
[389/428] Running utility command for check-bitcoin-cashaddr_tests
[390/428] bitcoin: testing script_tests
[391/428] Running utility command for check-bitcoin-getarg_tests
[392/428] bitcoin: testing ref_tests
[393/428] Running utility command for check-pow-aserti32d_tests
[394/428] Running utility command for check-bitcoin-script_tests
[395/428] Running pow test suite
PASSED: pow test suite
[396/428] Running utility command for check-bitcoin-ref_tests
[397/428] bitcoin: testing validation_tests
[398/428] Running utility command for check-bitcoin-validation_tests
[399/428] bitcoin: testing monolith_opcodes_tests
[400/428] bitcoin: testing skiplist_tests
[401/428] Running utility command for check-bitcoin-monolith_opcodes_tests
[402/428] Running utility command for check-bitcoin-skiplist_tests
[403/428] bitcoin: testing coinselector_tests
[404/428] Running utility command for check-bitcoin-coinselector_tests
[405/428] Linking CXX executable src/avalanche/test/test-avalanche
[406/428] avalanche: testing delegation_tests
[407/428] Running utility command for check-avalanche-delegation_tests
[408/428] bitcoin: testing util_tests
[409/428] Running utility command for check-bitcoin-util_tests
[410/428] avalanche: testing processor_tests
FAILED: src/avalanche/test/CMakeFiles/check-avalanche-processor_tests 
cd /work/abc-ci-builds/build-clang/src/avalanche/test && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-clang/test/junit && /usr/bin/cmake -E make_directory /work/abc-ci-builds/build-clang/test/log && /usr/bin/cmake -E env /work/cmake/utils/log-and-print-on-failure.sh /work/abc-ci-builds/build-clang/test/log/avalanche-processor_tests.log /work/abc-ci-builds/build-clang/src/avalanche/test/test-avalanche --run_test=processor_tests --logger=HRF,test_suite:JUNIT,message,avalanche-processor_tests.xml --catch_system_errors=no
Running 10 test cases...
Entering test module "Avalanche Test Suite"
../../src/avalanche/test/processor_tests.cpp(135): Entering test suite "processor_tests"
../../src/avalanche/test/processor_tests.cpp(143): Entering test case "vote_record"
../../src/avalanche/test/processor_tests.cpp(143): Leaving test case "vote_record"; testing time: 43213us
../../src/avalanche/test/processor_tests.cpp(243): Entering test case "block_update"
../../src/avalanche/test/processor_tests.cpp(243): Leaving test case "block_update"; testing time: 32830us
../../src/avalanche/test/processor_tests.cpp(269): Entering test case "block_register"
../../src/avalanche/test/processor_tests.cpp(269): Leaving test case "block_register"; testing time: 38574us
../../src/avalanche/test/processor_tests.cpp(425): Entering test case "multi_block_register"
../../src/avalanche/test/processor_tests.cpp(425): Leaving test case "multi_block_register"; testing time: 36441us
../../src/avalanche/test/processor_tests.cpp(527): Entering test case "poll_and_response"
Segmentation fault (core dumped)
[411/428] bitcoin: testing op_reversebytes_tests
[412/428] Running utility command for check-bitcoin-op_reversebytes_tests
[413/428] avalanche: testing proof_tests
[414/428] Running utility command for check-avalanche-proof_tests
[415/428] avalanche: testing peermanager_tests
[416/428] Running utility command for check-avalanche-peermanager_tests
[417/428] secp256k1: testing secp256k1-exhaustive_tests
[418/428] bitcoin-qt: testing test_bitcoin-qt
[419/428] Running bitcoin-qt test suite
PASSED: bitcoin-qt test suite
[420/428] bitcoin: testing transaction_tests
[421/428] Running utility command for check-bitcoin-transaction_tests
[422/428] bitcoin: testing coins_tests
[423/428] Running utility command for check-bitcoin-coins_tests
[424/428] Running bitcoin test suite
PASSED: bitcoin test suite
[425/428] secp256k1: testing secp256k1-tests
[426/428] Running secp256k1 test suite
PASSED: secp256k1 test suite
ninja: build stopped: cannot make progress due to previous errors.
Build build-clang failed with exit code 1

Tail of the build log:

[373/428] Running utility command for check-bitcoin-streams_tests
[374/428] bitcoin: testing undo_tests
[375/428] Running utility command for check-bitcoin-undo_tests
[376/428] bitcoin: testing util_threadnames_tests
[377/428] Running utility command for check-bitcoin-util_threadnames_tests
[378/428] bitcoin: testing txvalidationcache_tests
[379/428] Running utility command for check-bitcoin-txvalidationcache_tests
[380/428] bitcoin: testing serialize_tests
[381/428] Running utility command for check-bitcoin-serialize_tests
[382/428] bitcoin: testing validation_chainstatemanager_tests
[383/428] bitcoin: testing radix_tests
[384/428] Running utility command for check-bitcoin-validation_chainstatemanager_tests
[385/428] Running utility command for check-bitcoin-radix_tests
[386/428] bitcoin: testing compilerbug_tests
[387/428] bitcoin: testing crypto_tests
[388/428] Running utility command for check-bitcoin-compilerbug_tests
[389/428] bitcoin: testing checkpoints_tests
[390/428] bitcoin: testing validationinterface_tests
[391/428] Running utility command for check-bitcoin-crypto_tests
[392/428] Running utility command for check-bitcoin-checkpoints_tests
[393/428] Running utility command for check-bitcoin-validationinterface_tests
[394/428] bitcoin: testing blockcheck_tests
[395/428] Running utility command for check-bitcoin-blockcheck_tests
[396/428] bitcoin: testing cashaddr_tests
[397/428] bitcoin: testing script_tests
[398/428] bitcoin: testing getarg_tests
[399/428] Running utility command for check-bitcoin-cashaddr_tests
[400/428] Running utility command for check-bitcoin-script_tests
[401/428] Running utility command for check-bitcoin-getarg_tests
[402/428] Running bitcoin-qt test suite
PASSED: bitcoin-qt test suite
[403/428] bitcoin: testing ref_tests
[404/428] Running utility command for check-pow-aserti32d_tests
[405/428] Running pow test suite
PASSED: pow test suite
[406/428] Running utility command for check-bitcoin-ref_tests
[407/428] bitcoin: testing validation_tests
[408/428] Running utility command for check-bitcoin-validation_tests
[409/428] bitcoin: testing coinselector_tests
[410/428] Running utility command for check-bitcoin-coinselector_tests
[411/428] bitcoin: testing skiplist_tests
[412/428] Running utility command for check-bitcoin-skiplist_tests
[413/428] bitcoin: testing monolith_opcodes_tests
[414/428] Running utility command for check-bitcoin-monolith_opcodes_tests
[415/428] bitcoin: testing util_tests
[416/428] Running utility command for check-bitcoin-util_tests
[417/428] bitcoin: testing op_reversebytes_tests
[418/428] Running utility command for check-bitcoin-op_reversebytes_tests
[419/428] secp256k1: testing secp256k1-exhaustive_tests
[420/428] bitcoin: testing transaction_tests
[421/428] Running utility command for check-bitcoin-transaction_tests
[422/428] bitcoin: testing coins_tests
[423/428] Running utility command for check-bitcoin-coins_tests
[424/428] Running bitcoin test suite
PASSED: bitcoin test suite
[425/428] secp256k1: testing secp256k1-tests
[426/428] Running secp256k1 test suite
PASSED: secp256k1 test suite
ninja: build stopped: cannot make progress due to previous errors.
Build build-clang failed with exit code 1
This revision is now accepted and ready to land.Dec 5 2020, 18:59