Test boolean fallback in z_importkey

This commit is contained in:
Jack Grigg 2017-03-24 09:23:11 +13:00
parent b7e5b7d5ee
commit 53c96bfa6c
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,8 @@ class Wallet1941RegressionTest (BitcoinTestFramework):
self.sync_all()
# Import the key on node 1, only scanning the last few blocks.
self.nodes[1].z_importkey(key, 'yes', self.nodes[1].getblockchaininfo()['blocks'] - 100)
# (uses 'true' to test boolean fallback)
self.nodes[1].z_importkey(key, 'true', self.nodes[1].getblockchaininfo()['blocks'] - 100)
# Confirm that the balance on node 1 is zero, as we have not
# rescanned over the older transactions