assert_equal("wallet does not allow any change" in errorString, True)
# This send will succeed. We send two coinbase utxos totalling 20.0 less a fee of 0.00010000, with no change.
+ shieldvalue = Decimal('20.0') - Decimal('0.0001')
recipients = []
- recipients.append({"address":myzaddr, "amount": Decimal('20.0') - Decimal('0.0001')})
+ recipients.append({"address":myzaddr, "amount": shieldvalue})
myopid = self.nodes[0].z_sendmany(mytaddr, recipients)
- mytxid = self.wait_and_assert_operationid_status(myopid)
+ mytxid = wait_and_assert_operationid_status(self.nodes[0], myopid)
self.sync_all()
self.nodes[1].generate(1)
self.sync_all()
assert_equal(Decimal(resp["private"]), Decimal('19.9999'))
assert_equal(Decimal(resp["total"]), Decimal('39.9999'))
+ # The Sprout value pool should be unchanged
+ check_value_pool(self.nodes[0], 'sprout', sproutvalue)
+
# convert note to transparent funds
+ unshieldvalue = Decimal('10.0')
recipients = []
- recipients.append({"address":mytaddr, "amount":Decimal('10.0')})
+ recipients.append({"address":mytaddr, "amount": unshieldvalue})
myopid = self.nodes[0].z_sendmany(myzaddr, recipients)
- mytxid = self.wait_and_assert_operationid_status(myopid)
+ mytxid = wait_and_assert_operationid_status(self.nodes[0], myopid)
assert(mytxid is not None)
self.sync_all()