spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.38k stars 3.07k forks source link

Spend only confirmed coins in paytomany function #8966

Closed bar-boss closed 6 months ago

bar-boss commented 6 months ago

Hello. I have Windows version of Electrum. In preferences in Transaction tab I check "Spend only confirmed coins". Where I can find this settings in "paytomany" function in commands.py file?

ecdsa commented 6 months ago

in the same place as for a regular payment.

bar-boss commented 6 months ago

in the same place as for a regular payment.

There is no "spend only confirmed coins" settings.

async def paytomany(self, outputs, fee=None, feerate=None, from_addr=None, from_coins=None, change_addr=None, nocheck=False, unsigned=False, rbf=True, password=None, locktime=None, addtransaction=False, wallet: Abstract_Wallet = None):

ecdsa commented 6 months ago

In the "New transaction" dialog, after you click Pay

bar-boss commented 6 months ago

In the "New transaction" dialog, after you click Pay

I'm talking about the console version of Electrum, not the desktop

ecdsa commented 6 months ago

ah sorry. you should use the setconfig command

./run_electrum -o setconfig confirmed_only true

bar-boss commented 6 months ago

Thank you