How to save the mempool information immediately before the node receives a block?I want to use Bitcoin RPC API 'getrawmempool' to save the snapshot of the mempool immediately before my full node receives a block. This requires modification of the Bitcoin source code. How should I modify it? Who can help me very kindly?
Source: How to save the mempool information immediately before the node receives a block? (https://bitcoin.stackexchange.com/questions/106348/how-to-save-the-mempool-information-immediately-before-the-node-receives-a-block)