Cleaning dust from a wallet

Development and technical discussion related to Oracol Xor wallets
Post Reply
Posts: 11
Joined: Thu May 17, 2018 9:49 am

Cleaning dust from a wallet

Post by Labrader » Wed Jul 03, 2019 4:41 pm

XOR Cryptocurrency wallet uses the concept of UTXO. Suffice to say outputs reside in your wallet. And the wallet file is basically just a database. Like any database, when there are lots of records, things tend to slow down.

Suppose you run a infrastructure type of service, like a mining pool. Fundamentally it's just a wallet collecting and distributing outputs. Our Xor blockchain targets a block interval of 30s, that is to say, on average, there's a new block generated every 30s. That's 120 blocks every hour. Or 2880 block every day. Or 86400 blocks every month.

Yeah, so? Well, imagine a wallet with 86400 UTXOs. That's A LOT. Enough to slow your wallet to a halt.

The Xor blockchain had it's genesis block minted in November 2017. So far, at the time of writing this, there have been 1418733 blocks. If you have been with us for a while or even from very early on, if you are one of the very early miners, I bet your wallet has tens of thousands of UTXOs.

So now what? Maybe you should be cleaning some wallet dust, buddy!

How? Well, here's the deal: you can combine up to 33 inputs in one transaction, FOR FREE! That's a lot more than your average blockchain, which is usually limited to 6 inputs. Some blockchains even do not allow for free transactions!

If you are a linux user, the simplest way is to use crontab. The syntax is like this:

Code: Select all

* * * * * oracold sendtoaddress <addy> <amount>
The example above runs every minute. Tune it for your needs:

Clean up your uneven inputs manually from the wallet, then fire up crontab and relax while your UTXOs are being consolidated.

Post Reply