Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mempool_persist.py
Show All 23 Lines | - startup node1. Verify that its mempool is empty. Shutdown node1. | ||||
dumped to disk when the node is shut down. | dumped to disk when the node is shut down. | ||||
- Restart node0 with -persistmempool=0. Verify that its mempool is | - Restart node0 with -persistmempool=0. Verify that its mempool is | ||||
empty. Shutdown node0. This tests that with -persistmempool=0, | empty. Shutdown node0. This tests that with -persistmempool=0, | ||||
the mempool is not loaded from disk on start up. | the mempool is not loaded from disk on start up. | ||||
- Restart node0 with -persistmempool. Verify that it has 5 | - Restart node0 with -persistmempool. Verify that it has 5 | ||||
transactions in its mempool. This tests that -persistmempool=0 | transactions in its mempool. This tests that -persistmempool=0 | ||||
does not overwrite a previously valid mempool stored on disk. | does not overwrite a previously valid mempool stored on disk. | ||||
- Remove node0 mempool.dat and verify savemempool RPC recreates it | - Remove node0 mempool.dat and verify savemempool RPC recreates it | ||||
and verify that node1 can load it and has 5 transaction in its | and verify that node1 can load it and has 5 transactions in its | ||||
mempool. | mempool. | ||||
- Verify that savemempool throws when the RPC is called if | - Verify that savemempool throws when the RPC is called if | ||||
node1 can't write to disk. | node1 can't write to disk. | ||||
""" | """ | ||||
from decimal import Decimal | from decimal import Decimal | ||||
import os | import os | ||||
import time | import time | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |