From cd41ee29be58b91247a708893337b9d20dee573b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sa=C5=82aban?= Date: Fri, 16 Mar 2018 00:21:09 +0100 Subject: [PATCH] Prepare for v7 hard fork, set default ring size to 7 (closes #16) --- monero/account.py | 4 ++-- monero/wallet.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/monero/account.py b/monero/account.py index 5d97f72..bf7eeb1 100644 --- a/monero/account.py +++ b/monero/account.py @@ -65,7 +65,7 @@ class Account(object): return self._backend.new_address(account=self.index, label=label) def transfer(self, address, amount, - priority=prio.NORMAL, ringsize=5, payment_id=None, unlock_time=0, + priority=prio.NORMAL, ringsize=7, payment_id=None, unlock_time=0, relay=True): """ Sends a transfer. Returns a list of resulting transactions. @@ -95,7 +95,7 @@ class Account(object): relay=relay) def transfer_multiple(self, destinations, - priority=prio.NORMAL, ringsize=5, payment_id=None, unlock_time=0, + priority=prio.NORMAL, ringsize=7, payment_id=None, unlock_time=0, relay=True): """ Sends a batch of transfers. Returns a list of resulting transactions. diff --git a/monero/wallet.py b/monero/wallet.py index b3dc040..58915fd 100644 --- a/monero/wallet.py +++ b/monero/wallet.py @@ -150,7 +150,7 @@ class Wallet(object): return self.accounts[0].new_address(label=label) def transfer(self, address, amount, - priority=prio.NORMAL, ringsize=5, payment_id=None, unlock_time=0, + priority=prio.NORMAL, ringsize=7, payment_id=None, unlock_time=0, relay=True): """ Sends a transfer from the default account. Returns a list of resulting transactions. @@ -180,7 +180,7 @@ class Wallet(object): relay=relay) def transfer_multiple(self, destinations, - priority=prio.NORMAL, ringsize=5, payment_id=None, unlock_time=0, + priority=prio.NORMAL, ringsize=7, payment_id=None, unlock_time=0, relay=True): """ Sends a batch of transfers from the default account. Returns a list of resulting