BTC node just restarted and the mempool suddenly emptied? Check loaded first
If monitoring shows that the number of unconfirmed transactions suddenly drops after a Bitcoin node restarts, first check whether it has finished reading the locally saved mempool. Bitcoin Core's getmempoolinfo returns both the transaction count, size, and loaded. The official documentation defines loaded as whether the initial attempt to load the persisted mempool has finished.
If the node has just started, size is very low, and loaded is still false, this reading should be marked as a sample taken during startup. Once the loading attempt has finished, check the transaction count and node logs. Even if loaded changes to true, this field only indicates that the loading attempt has ended; by itself, it does not mean that every old transaction has been restored.
When building a dashboard, retain the collection timestamps for readings before and after a restart, and include the loaded status. To determine whether the number of unconfirmed transactions has actually decreased, you can also compare readings from other normally running nodes over the same time period. This helps distinguish an individual node's restart process from broader changes in the transaction pool.
Original source https://bitcoincore.org/en/doc/30.0.0/rpc/blockchain/getmempoolinfo/