mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 10:19:26 +02:00
rpc, wallet: use the same next_index
in listdescriptors and importdescriptors
This commit is contained in:
@ -48,7 +48,7 @@ class ListDescriptorsTest(BitcoinTestFramework):
|
||||
assert_equal(4, len([d for d in result['descriptors'] if d['internal']]))
|
||||
for item in result['descriptors']:
|
||||
assert item['desc'] != ''
|
||||
assert item['next'] == 0
|
||||
assert item['next_index'] == 0
|
||||
assert item['range'] == [0, 0]
|
||||
assert item['timestamp'] is not None
|
||||
|
||||
@ -72,7 +72,8 @@ class ListDescriptorsTest(BitcoinTestFramework):
|
||||
'timestamp': 1296688602,
|
||||
'active': False,
|
||||
'range': [0, 0],
|
||||
'next': 0},
|
||||
'next': 0,
|
||||
'next_index': 0},
|
||||
],
|
||||
}
|
||||
assert_equal(expected, wallet.listdescriptors())
|
||||
@ -86,7 +87,8 @@ class ListDescriptorsTest(BitcoinTestFramework):
|
||||
'timestamp': 1296688602,
|
||||
'active': False,
|
||||
'range': [0, 0],
|
||||
'next': 0},
|
||||
'next': 0,
|
||||
'next_index': 0},
|
||||
],
|
||||
}
|
||||
assert_equal(expected_private, wallet.listdescriptors(True))
|
||||
|
Reference in New Issue
Block a user