Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
round test to closer int to avoid hitting 9 decimal to rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
greenaddress committed Nov 5, 2018
1 parent 18cda0f commit dd1d4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qa/rpc-tests/confidential_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def run_test(self):
unblinded_destinations[self.nodes[0].validateaddress(self.nodes[0].getnewaddress())["unconfidential"]] = 2
self.nodes[0].sendmany("", unblinded_destinations, 0)
self.nodes[0].generate(1)
txid = self.nodes[0].sendmany("", {self.nodes[0].getnewaddress():self.nodes[0].getbalance()["bitcoin"]/2 - 1, self.nodes[0].getnewaddress():self.nodes[0].getbalance()["bitcoin"]/2 - 1})
txid = self.nodes[0].sendmany("", {self.nodes[0].getnewaddress():int(self.nodes[0].getbalance()["bitcoin"]/2 - 1), self.nodes[0].getnewaddress(): int(self.nodes[0].getbalance()["bitcoin"]/2 - 1)})
self.nodes[0].generate(1)
assert_equal(self.nodes[0].gettransaction(txid)["confirmations"], 1)
if __name__ == '__main__':
Expand Down

0 comments on commit dd1d4eb

Please sign in to comment.