Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mempool_persist.py
Show All 24 Lines | Test is as follows: | ||||
- 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. | ||||
""" | """ | ||||
from decimal import Decimal | |||||
import time | import time | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import * | from test_framework.util import assert_equal, wait_until | ||||
class MempoolPersistTest(BitcoinTestFramework): | class MempoolPersistTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 3 | self.num_nodes = 3 | ||||
self.extra_args = [[], ["-persistmempool=0"], []] | self.extra_args = [[], ["-persistmempool=0"], []] | ||||
def run_test(self): | def run_test(self): | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |