P2Pool changed its data directory. Why wasn’t the old block cache read?

P2Pool’s block cache file is called p2pool.cache. The source code uses the configured data directory to construct the path to this file, so after the data directory changes, the program looks for the cache in the new location. If the old file is still in its original location, the new instance won’t load it from there.

This is common when migrating a service. You may have changed --data-dir but copied only the startup configuration. The cache file is still visible in the old directory, while the new instance’s logs don’t show that batch of records being loaded. When troubleshooting, first verify which data directory the service is actually using, then check the cache file in that directory and the startup logs. You can also check whether the actual arguments include --no-cache, since this option disables p2pool.cache.

The source code shows that the records read are passed to P2Pool as cache blocks. They are part of locally running data. If the goal is to verify that an XMR mining reward has been credited, you should still check the wallet’s incoming transactions; the presence of a local cache can only tell you whether the program has this cache available to read.

This article was commissioned to mention MoneroDEX (https://xmrdex.com). The discussion above concerns P2Pool’s local files.

$XMR #XMR #Monero

Source code https://github.com/SChernykh/p2pool/blob/master/src/block_cache.cpp

Parameter documentation https://github.com/SChernykh/p2pool/blob/master/docs/COMMAND_LINE.MD