jonasschnelli
commented at 3:38 PM on May 9, 2019:
contributor
The help of pruneblockchain tells us that the return value is Height of the last block pruned.,... but the implementation naively returns the provided input height and therefore not respecting that pruning can't be done on all possible blockheight due to the fact that we only prune complete blockfiles (which combine multiple blocks).
This fixes the return value to actually return the correct prune height.
jonasschnelli added the label RPC/REST/ZMQ on May 9, 2019
jonasschnelli added the label Needs backport on May 9, 2019
jonasschnelli added this to the milestone 0.18.1 on May 9, 2019
promag approved
promag
commented at 5:15 PM on May 9, 2019:
member
Edit: on a second thought your code is more suitable for backport.
promag
commented at 9:58 PM on May 12, 2019:
member
Tested ACK2b3849d, but should fix the extended test test/functional/feature_pruning.py, which gives the following error:
2019-05-12T21:49:52.136000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
File "/Users/joao/Projects/bitcoin/test/functional/test_framework/test_framework.py", line 175, in main
self.run_test()
File "./test/functional/feature_pruning.py", line 462, in run_test
self.manual_test(3, use_timestamp=False)
File "./test/functional/feature_pruning.py", line 312, in manual_test
prune(100)
File "./test/functional/feature_pruning.py", line 289, in prune
assert_equal(ret, expected_ret)
File "/Users/joao/Projects/bitcoin/test/functional/test_framework/util.py", line 39, in assert_equal
raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
AssertionError: not(0 == 100)
With this change I think it makes sense to compare the result with node.getblockchaininfo()['prunedheight'].
MarcoFalke
commented at 10:38 PM on May 12, 2019:
member
utACK2b3849dcd2f8678f03d738c618828602bd249d1b@promag Thanks for running the test ;)
MarcoFalke closed this on May 15, 2019
MarcoFalke reopened this on May 15, 2019
MarcoFalke
commented at 11:44 AM on May 17, 2019:
member
jonasschnelli
commented at 5:10 PM on May 24, 2019:
contributor
I haven't started working on the prune test fix... I have plans to do this the next week. But happy to pull in a commit if someone else wants to fix it.
promag
commented at 10:18 AM on May 25, 2019:
member
@jonasschnelli promag@22ff1bbe7 is an option, if accepted should be squashed.
jonasschnelli force-pushed on May 29, 2019
jonasschnelli
commented at 7:12 AM on May 29, 2019:
contributor
Added 22ff1bbe71c4acc1fd4303399abbb3a52f436667 from @promag repo (test fix). I don't think it needs squashing.
MarcoFalke
commented at 11:26 AM on May 29, 2019:
member
@jonasschnelli Are you sure you pushed the correct branch?
MarcoFalke
commented at 10:18 AM on June 5, 2019:
member
@jonasschnelli My previous ACK was 2b3849d, which is a small bugfix. The current pull request adds a config option, which does not qualify as a bugfix that should be backported.
MarcoFalke
commented at 10:19 AM on June 5, 2019:
member
I don't think it needs squashing.
The test will fail otherwise, breaking git bisect.
DrahtBot
commented at 3:09 PM on June 7, 2019:
member
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
No conflicts as of last run.
Fix RPC/pruneblockchain returned prune height97f517dd85
fixup: Fix prunning testf402012ccf
jonasschnelli force-pushed on Jun 11, 2019
jonasschnelli
commented at 8:22 AM on June 11, 2019:
contributor
There was a rebase issue. Thanks, @MarcoFalke for reporting. Fixed.
MarcoFalke
commented at 9:10 AM on June 11, 2019:
member
ACKf402012ccfc596d7d94851dabbf386c278ff5335
jonasschnelli merged this on Jun 13, 2019
jonasschnelli closed this on Jun 13, 2019
jonasschnelli referenced this in commit 431d81b61c on Jun 13, 2019
MarcoFalke removed the label Needs backport on Jun 13, 2019
MarcoFalke referenced this in commit abd9a8fbb9 on Jun 13, 2019
MarcoFalke referenced this in commit c6b07ee8de on Jun 13, 2019
MarcoFalke referenced this in commit 775f0b7b76 on Jun 13, 2019
sidhujag referenced this in commit 98ee6d76a3 on Jun 13, 2019
MarcoFalke referenced this in commit c80a498ae5 on Jun 14, 2019
MarcoFalke referenced this in commit 592016ba18 on Jun 14, 2019
HashUnlimited referenced this in commit 68e3989082 on Aug 23, 2019
HashUnlimited referenced this in commit 094a467bb1 on Aug 23, 2019
Bushstar referenced this in commit 69b1963269 on Aug 24, 2019
Bushstar referenced this in commit adcc1bb881 on Aug 24, 2019
jasonbcox referenced this in commit 9ffd982fdb on Sep 8, 2020
PastaPastaPasta referenced this in commit 70c4c85955 on Oct 28, 2021
Munkybooty referenced this in commit 5f57aa55ea on Oct 29, 2021
Munkybooty referenced this in commit 58c187bc9e on Oct 30, 2021
Munkybooty referenced this in commit 0e388bfe12 on Nov 2, 2021
Munkybooty referenced this in commit eded623e6d on Nov 4, 2021
Munkybooty referenced this in commit fe895b17e4 on Nov 16, 2021
Munkybooty referenced this in commit 34d1a742d4 on Nov 18, 2021
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-02 15:14 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me