monero-ecosystem / monero-python

A comprehensive Python module for handling Monero cryptocurrency
BSD 3-Clause "New" or "Revised" License
246 stars 80 forks source link

Prune transaction #85

Closed jeffro256 closed 3 years ago

jeffro256 commented 3 years ago

I changed one file: monero.backends.jsonrpc.daemon to add one line. This send the "prune": True option along with the get_transactions call. The data that is pruned is not used by the _do_get_transactions call but it can save up to 80% in bandwidth.

emesik commented 3 years ago

I'm just thinking some users may need the binary blob. Perhaps we should add some optional argument to monero.daemon.Daemon.transactions? What do you think?

jeffro256 commented 3 years ago

Okay I added a change to make it optional, and it defaults to False

emesik commented 3 years ago

Eventually I moved the parameter to backend initialization.