These are additions to getblockfrompeer that I already suggested on the original PR.
The two commits do the following:
- Add a test for
getblockfrompeerusage on pruned nodes. This is important because many use-cases forgetblockfrompeerare in a context of a pruned node. - Add some information on how long the users of pruned nodes can expect the block to be available after they have used the RPC. I think the behavior is not very intuitive for users and I would not be surprised if users expect the block to be available indefinitely.