Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_keypool_topup.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2017 The Bitcoin Core developers | # Copyright (c) 2017-2019 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
"""Test HD Wallet keypool restore function. | """Test HD Wallet keypool restore function. | ||||
Two nodes. Node1 is under test. Node0 is providing transactions and generating blocks. | Two nodes. Node1 is under test. Node0 is providing transactions and generating blocks. | ||||
- Start node1, shutdown and backup wallet. | - Start node1, shutdown and backup wallet. | ||||
- Generate 110 keys (enough to drain the keypool). Store key 90 (in the initial keypool) and key 110 (beyond the initial keypool). Send funds to key 90 and key 110. | - Generate 110 keys (enough to drain the keypool). Store key 90 (in the initial keypool) and key 110 (beyond the initial keypool). Send funds to key 90 and key 110. | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |