Moving the miner fund from consensus to policy makes it possible to do the
following without a flag day upgrade:
- Change fund address
- Change fund amount
- Add staking rewards
Differential D12806
[consensus + avalanche] Move miner fund from consensus to avalanche policy sdulfari on Dec 8 2022, 04:08. Authored by
Details
Moving the miner fund from consensus to policy makes it possible to do the
ninja check check-functional
Diff Detail
Event TimelineComment Actions
Comment Actions Moved block policy logic into its own function to be called before attempting Comment Actions Build Bitcoin ABC Diffs / Diff Testing (build-without-wallet) failed.
Failed tests logs: ====== Bitcoin ABC functional tests: abc_feature_minerfund.py ====== ------- Stdout: ------- 2023-01-13T21:46:59.193000Z TestFramework (INFO): Initializing test directory /work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_ _20230113_214449/abc_feature_minerfund_160 2023-01-13T21:46:59.506000Z TestFramework (INFO): Create some history 2023-01-13T21:47:01.551000Z TestFramework (ERROR): Assertion failed Traceback (most recent call last): File "/work/test/functional/test_framework/test_framework.py", line 135, in main self.run_test() File "/work/test/functional/abc_feature_minerfund.py", line 156, in run_test self.wait_until(lambda: parked_block(first_block_no_miner_fund)) File "/work/test/functional/test_framework/test_framework.py", line 703, in wait_until return wait_until_helper(test_function, timeout=timeout, File "/work/test/functional/test_framework/util.py", line 273, in wait_until_helper if predicate(): File "/work/test/functional/abc_feature_minerfund.py", line 156, in <lambda> self.wait_until(lambda: parked_block(first_block_no_miner_fund)) File "/work/test/functional/abc_feature_minerfund.py", line 153, in parked_block assert tip["status"] != "active" AssertionError 2023-01-13T21:47:01.602000Z TestFramework (INFO): Stopping nodes 2023-01-13T21:47:01.703000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_ _20230113_214449/abc_feature_minerfund_160 2023-01-13T21:47:01.704000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_ _20230113_214449/abc_feature_minerfund_160/test_framework.log 2023-01-13T21:47:01.704000Z TestFramework (ERROR): 2023-01-13T21:47:01.704000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/build-without-wallet/test/tmp/test_runner_₿₵_ _20230113_214449/abc_feature_minerfund_160' to consolidate all logs 2023-01-13T21:47:01.704000Z TestFramework (ERROR): 2023-01-13T21:47:01.704000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log. 2023-01-13T21:47:01.704000Z TestFramework (ERROR): https://github.com/Bitcoin-ABC/bitcoin-abc/issues 2023-01-13T21:47:01.704000Z TestFramework (ERROR): Each failure log is accessible here: Comment Actions Build Bitcoin ABC Diffs / Diff Testing (build-debug) failed.
Failed tests logs: ====== Bitcoin ABC functional tests: abc_feature_minerfund.py ====== ------- Stdout: ------- 2023-01-13T21:49:16.513000Z TestFramework (INFO): Initializing test directory /work/abc-ci-builds/build-debug/test/tmp/test_runner_₿₵_ _20230113_214309/abc_feature_minerfund_160 2023-01-13T21:49:17.125000Z TestFramework (INFO): Create some history 2023-01-13T21:49:19.205000Z TestFramework (ERROR): Assertion failed Traceback (most recent call last): File "/work/test/functional/test_framework/test_framework.py", line 135, in main self.run_test() File "/work/test/functional/abc_feature_minerfund.py", line 156, in run_test self.wait_until(lambda: parked_block(first_block_no_miner_fund)) File "/work/test/functional/test_framework/test_framework.py", line 703, in wait_until return wait_until_helper(test_function, timeout=timeout, File "/work/test/functional/test_framework/util.py", line 273, in wait_until_helper if predicate(): File "/work/test/functional/abc_feature_minerfund.py", line 156, in <lambda> self.wait_until(lambda: parked_block(first_block_no_miner_fund)) File "/work/test/functional/abc_feature_minerfund.py", line 153, in parked_block assert tip["status"] != "active" AssertionError 2023-01-13T21:49:19.256000Z TestFramework (INFO): Stopping nodes 2023-01-13T21:49:19.358000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/build-debug/test/tmp/test_runner_₿₵_ _20230113_214309/abc_feature_minerfund_160 2023-01-13T21:49:19.358000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/build-debug/test/tmp/test_runner_₿₵_ _20230113_214309/abc_feature_minerfund_160/test_framework.log 2023-01-13T21:49:19.359000Z TestFramework (ERROR): 2023-01-13T21:49:19.359000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/build-debug/test/tmp/test_runner_₿₵_ _20230113_214309/abc_feature_minerfund_160' to consolidate all logs 2023-01-13T21:49:19.359000Z TestFramework (ERROR): 2023-01-13T21:49:19.359000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log. 2023-01-13T21:49:19.359000Z TestFramework (ERROR): https://github.com/Bitcoin-ABC/bitcoin-abc/issues 2023-01-13T21:49:19.359000Z TestFramework (ERROR): Each failure log is accessible here: Comment Actions Build Bitcoin ABC Diffs / Diff Testing (build-diff) failed.
Failed tests logs: ====== Bitcoin ABC functional tests: abc_feature_minerfund.py ====== ------- Stdout: ------- 2023-01-13T21:50:24.002000Z TestFramework (INFO): Initializing test directory /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_ _20230113_214627/abc_feature_minerfund_160 2023-01-13T21:50:24.399000Z TestFramework (INFO): Create some history 2023-01-13T21:50:26.477000Z TestFramework (ERROR): Assertion failed Traceback (most recent call last): File "/work/test/functional/test_framework/test_framework.py", line 135, in main self.run_test() File "/work/test/functional/abc_feature_minerfund.py", line 156, in run_test self.wait_until(lambda: parked_block(first_block_no_miner_fund)) File "/work/test/functional/test_framework/test_framework.py", line 703, in wait_until return wait_until_helper(test_function, timeout=timeout, File "/work/test/functional/test_framework/util.py", line 273, in wait_until_helper if predicate(): File "/work/test/functional/abc_feature_minerfund.py", line 156, in <lambda> self.wait_until(lambda: parked_block(first_block_no_miner_fund)) File "/work/test/functional/abc_feature_minerfund.py", line 153, in parked_block assert tip["status"] != "active" AssertionError 2023-01-13T21:50:26.528000Z TestFramework (INFO): Stopping nodes 2023-01-13T21:50:26.630000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_ _20230113_214627/abc_feature_minerfund_160 2023-01-13T21:50:26.630000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_ _20230113_214627/abc_feature_minerfund_160/test_framework.log 2023-01-13T21:50:26.630000Z TestFramework (ERROR): 2023-01-13T21:50:26.630000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_ _20230113_214627/abc_feature_minerfund_160' to consolidate all logs 2023-01-13T21:50:26.630000Z TestFramework (ERROR): 2023-01-13T21:50:26.630000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log. 2023-01-13T21:50:26.630000Z TestFramework (ERROR): https://github.com/Bitcoin-ABC/bitcoin-abc/issues 2023-01-13T21:50:26.630000Z TestFramework (ERROR): ====== Bitcoin ABC functional tests with the next upgrade activated: abc_feature_minerfund.py ====== ------- Stdout: ------- 2023-01-13T21:54:41.019000Z TestFramework (INFO): Initializing test directory /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_ _20230113_215036/abc_feature_minerfund_160 2023-01-13T21:54:41.430000Z TestFramework (INFO): Create some history 2023-01-13T21:54:43.510000Z TestFramework (ERROR): Assertion failed Traceback (most recent call last): File "/work/test/functional/test_framework/test_framework.py", line 135, in main self.run_test() File "/work/test/functional/abc_feature_minerfund.py", line 156, in run_test self.wait_until(lambda: parked_block(first_block_no_miner_fund)) File "/work/test/functional/test_framework/test_framework.py", line 703, in wait_until return wait_until_helper(test_function, timeout=timeout, File "/work/test/functional/test_framework/util.py", line 273, in wait_until_helper if predicate(): File "/work/test/functional/abc_feature_minerfund.py", line 156, in <lambda> self.wait_until(lambda: parked_block(first_block_no_miner_fund)) File "/work/test/functional/abc_feature_minerfund.py", line 153, in parked_block assert tip["status"] != "active" AssertionError 2023-01-13T21:54:43.561000Z TestFramework (INFO): Stopping nodes 2023-01-13T21:54:43.663000Z TestFramework (WARNING): Not cleaning up dir /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_ _20230113_215036/abc_feature_minerfund_160 2023-01-13T21:54:43.663000Z TestFramework (ERROR): Test failed. Test logging available at /work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_ _20230113_215036/abc_feature_minerfund_160/test_framework.log 2023-01-13T21:54:43.663000Z TestFramework (ERROR): 2023-01-13T21:54:43.663000Z TestFramework (ERROR): Hint: Call /work/test/functional/combine_logs.py '/work/abc-ci-builds/build-diff/test/tmp/test_runner_₿₵_ _20230113_215036/abc_feature_minerfund_160' to consolidate all logs 2023-01-13T21:54:43.663000Z TestFramework (ERROR): 2023-01-13T21:54:43.663000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log. 2023-01-13T21:54:43.663000Z TestFramework (ERROR): https://github.com/Bitcoin-ABC/bitcoin-abc/issues 2023-01-13T21:54:43.663000Z TestFramework (ERROR): Each failure log is accessible here:
|