Merge #15991: Bugfix: fix pruneblockchain returned prune height

Merge #15991: Bugfix: fix pruneblockchain returned prune height

f402012cc fixup: Fix prunning test (João Barbosa)
97f517dd8 Fix RPC/pruneblockchain returned prune height (Jonas Schnelli)

Pull request description:

  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.

ACKs for commit f40201:
  MarcoFalke:
    ACK f402012ccfc596d7d94851dabbf386c278ff5335

Tree-SHA512: 88c910030ffb83196663e5ebebc29d036fcdbbb2ab266e4538991867924a61bacd8361c1fbf294a0ea7e02347ae183d792f10a10b8f6187e8a4c4c6e4124d7e6

情報元 - Merge #15991: Bugfix: fix pruneblockchain returned prune height · bitcoin/[email protected] · GitHub

Merge #15991: Bugfix: fix pruneblockchain returned prune height · bitcoin/bitcoin@431d81b · GitHub
スポンサーリンク

シェアする

フォローする

スポンサーリンク

トップへ戻る