Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_address_types.py
Show All 26 Lines | A series of tests, iterating over node0-node3. In each iteration of the test, one node sends: | ||||
- 40/101th to the remaining node | - 40/101th to the remaining node | ||||
- 1/101th remains as fee+change | - 1/101th remains as fee+change | ||||
Iterate over each node for single key addresses, and then over each node for | Iterate over each node for single key addresses, and then over each node for | ||||
multisig addresses. Repeat test. As every node sends coins after receiving, | multisig addresses. Repeat test. As every node sends coins after receiving, | ||||
this also verifies that spending coins sent to all these address types works. | this also verifies that spending coins sent to all these address types works. | ||||
""" | """ | ||||
from decimal import Decimal | |||||
import itertools | import itertools | ||||
from decimal import Decimal | |||||
from test_framework.descriptors import descsum_check, descsum_create | |||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.descriptors import ( | |||||
descsum_create, | |||||
descsum_check, | |||||
) | |||||
from test_framework.util import ( | from test_framework.util import ( | ||||
assert_equal, | assert_equal, | ||||
assert_greater_than, | assert_greater_than, | ||||
connect_nodes, | connect_nodes, | ||||
) | ) | ||||
class AddressTypeTest(BitcoinTestFramework): | class AddressTypeTest(BitcoinTestFramework): | ||||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |