Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mempool_persist.py
Show All 29 Lines | - Restart node0 with -persistmempool. Verify that it has 5 | ||||
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 transactions 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 | |||||
import os | import os | ||||
import time | import time | ||||
from decimal import Decimal | |||||
from test_framework.p2p import P2PTxInvStore | from test_framework.p2p import P2PTxInvStore | ||||
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, | assert_equal, | ||||
assert_greater_than_or_equal, | assert_greater_than_or_equal, | ||||
assert_raises_rpc_error, | assert_raises_rpc_error, | ||||
connect_nodes, | connect_nodes, | ||||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |