# Linux singer 6.18.44-0-lts x86_64 # /dev/shm and /tmp are tmpfs # as user, nsm here: # touch /dev/shm/mempool.dat.new # as root: # cd /home/nsm/.bitcoin # mount -o rw,bind /dev/shm/mempool.dat.new mempool.dat.new # everything else here that follows # is run as an unprivileged user + date -u Tue Oct 13 13:29:06 UTC 2026 + bitcoind -version + head -1 Bitcoin Core daemon version v32.0.0rc3 bitcoind + bitcoin-cli echo hello+ grep . [ "hello" ] + mountpoint /home/nsm/.bitcoin/mempool.dat.new /home/nsm/.bitcoin/mempool.dat.new is a mountpoint + nicecat.sh /tmp/gmi-main.json + bitcoin-cli getmempoolinfo { "loaded": true, "size": 81665, "bytes": 39935901, "usage": 222160408, "total_fee": 0.07456094, "maxmempool": 300000000, "mempoolminfee": 0.00000100, "minrelaytxfee": 0.00000100, "incrementalrelayfee": 0.00000100, "unbroadcastcount": 0, "permitbaremultisig": true, "maxdatacarriersize": 100000, "limitclustercount": 64, "limitclustersize": 101000, "optimal": true } + : following is getrawmempool, just shortened + safecat.sh /dev/shm/mymempool.txt + grm.sh + : Following non-zero exit is intended. + : On bitcoind side it looks like this: + : Failed to dump mempool: Rename failed. Continuing anyway. + time bitcoin-cli savemempool error code: -1 error message: Unable to dump mempool to disk Command exited with non-zero status 1 real 0m 0.80s user 0m 0.00s sys 0m 0.00s + f=/dev/shm/mempool.dat.new + : Leverage safecat to make a clean, atomic copy of the mempool dump + cat /dev/shm/mempool.dat.new + safecat.sh /dev/shm/mempool.copy + : Safe symlink update without crashing or throwing an error 'if' it exists + test '!' -e /dev/shm/mempool.copy.dat + cd /dev/shm + ls -ilh mempool.copy mempool.dat.new 2178993 -rw------- 1 nsm nsm 114M Oct 13 13:29 mempool.copy 15 -rw-r--r-- 1 nsm nsm 114M Oct 13 13:29 mempool.dat.new + cd /home/nsm/web/ln + ls -l mymempool-log.txt mymempool.dat mymempool.txt mymempoolgen.sh.txt mymempoolhere.sh.txt lrwxrwxrwx 1 nsm nsm 22 Feb 21 2025 mymempool-log.txt -> /dev/shm/mymempool.log lrwxrwxrwx 1 nsm nsm 21 Dec 10 2024 mymempool.dat -> /dev/shm/mempool.copy lrwxrwxrwx 1 nsm nsm 22 Feb 18 2025 mymempool.txt -> /dev/shm/mymempool.txt -rw-r--r-- 1 nsm nsm 1477 Oct 11 17:24 mymempoolgen.sh.txt -rwx------ 1 nsm nsm 1461 Apr 19 12:01 mymempoolhere.sh.txt + date -u Tue Oct 13 13:29:09 UTC 2026